Concepts/9. Security & Auth/Rate Limiting: Token vs Leaky Bucket
🛡️
9. Security & AuthIntermediate🔒 LOCKED FOR FREE TIER

Rate Limiting: Token vs Leaky Bucket

← All 150+ Concepts

Protects backend APIs from abuse, DDoS, and cascading resource starvation using atomic in-memory counter algorithms evaluated via Redis Lua scripts.

STAFF ENGINEER TAKEAWAY: Sliding Window Counter offers the best balance between memory efficiency and burst smoothing; execute via Redis Lua scripts to avoid race conditions.
🔒

Unlock Rate Limiting: Token vs Leaky Bucket & All 150+ Visual Architecture Deep Dives

This advanced distributed system deep-dive includes interactive packet visualizers, state machine transitions, and FAANG interview trade-off blueprints.

More Topics in 9. Security & Auth

🎫JSON Web Tokens (JWT) Stateless Auth

A compact, URL-safe means of representing signed claims (Header.Payload.Signature) transferred between client and microservices statelessly.

🔐OAuth 2.0 & OpenID Connect (OIDC)

Industry-standard authorization framework that allows third-party applications to obtain limited access to user accounts without sharing passwords.

🔒TLS 1.3 Cryptographic Handshake

The cryptographic protocol that establishes authenticated, end-to-end encrypted HTTPS communication over TCP in a single 1-RTT round trip.

👥Role-Based Access Control (RBAC)

Restricts system access by grouping permissions into predefined roles (Admin, Editor, Viewer) and assigning users to roles.