ClientLoad Bal.Server AServer BCacheDBMQ

The Daily Dev

The Duolingo for system design.

One real system design question every day. Answer it, earn XP, build streaks, and level up from Intern to Distinguished Engineer, without ever opening another textbook.

  • Daily questions across the full design surface
  • XP, combos, and 8 engineering levels
  • Instant explanations on every answer
Today's Question
25
2 in a row
Caching

You're caching API responses. Reads dominate; data updates every 5 minutes. What's the right invalidation strategy?

ATTL-based expiration
BWrite-through cache, no expiry
CNo caching, hit the DB every time
DManual purge on every request
✓ Correct. TTL keeps reads cheap, bounds staleness to 5 min.
Engineering level
Junior Dev1,050 XP to Mid Level
Intern
Junior
Mid
Senior
Staff
Principal
How it works

Practice. Earn. Level up.

Mini Lesson
Caching

Fast reads, cheaper cloud bill

What it is

ClientEdge cacheServerDBDB cache

At its core, caching is about temporarily storing frequently-accessed data in a fast, in-memory store so future reads don't have to hit a slower underlying system.

Done well, caching makes slow operations feel instant. It cuts latency for your users, reduces load on your database, and shrinks your cloud bill. Done poorly, it causes stale data, hard-to-reproduce bugs, and system-wide inconsistencies.

There are 2 hard problems in computer science: cache invalidation, naming things, and off-by-one errors.
A

Answer a new question every day

One real system design tradeoff lands in your feed each day. Multiple choice, ordering, matching.

B

Take mini lessons on new skills, get quizzed on the results

Short, focused lessons introduce a new concept, then quiz you on the spot so it actually sticks.

C

Review failed questions

Every question you miss comes back later. Spaced repetition makes sure the gaps in your knowledge get filled in.

What you'll master

The full system design surface.

CachingLoad BalancingDatabasesShardingReplicationMessage QueuesConsistencyRate LimitingCDNsAPI DesignSearchStorageMicroservicesObservability

Get good at system design.
One question a day.

Join thousands of engineers leveling up their skills with The Daily Dev.