SkillSprout
Chapter 3

Speed, Async and Coordination

Caching, CDNs, queues, real-time delivery, rate limiting, retries, coordination and geo data structures.

1Caching
Intermediate
10 min
2Content Delivery Networks (CDN)
Beginner
8 min
3Queues, Pub/Sub and Message Brokers
Intermediate
9 min
4Real-Time Communication: Polling, SSE, WebSockets
Intermediate
8 min
5Rate Limiting
Intermediate
9 min
6Retries, Backoff, Circuit Breakers and Idempotency
Intermediate
9 min
7Distributed Coordination: Locks, Leases, Leader Election
Advanced
9 min
8Bloom Filters, HyperLogLog, Geohash and Quadtrees
Advanced
11 min

Chapter quiz

Speed, Async and Coordination · 6 questions

  1. 1.A service has a 1 ms cache and a 20 ms database. Going from a 90% to a 99% cache hit rate changes database load by roughly:

  2. 2.A very popular cache key expires and thousands of requests hit the database at once. What is this called and what prevents it?

  3. 3.Which design gives effectively exactly-once processing with a message broker?

  4. 4.A token bucket has capacity 10 and refills 5 tokens per second. It is empty at t = 0. How many requests can be accepted at t = 1 second?

  5. 5.10,000 clients fail at the same moment and use exponential backoff without jitter. What happens?

  6. 6.A client holds a lease, pauses for 40 seconds, and wakes up after its lease expired and another client took over. What protects the data?

0 of 6 answered