Skip to content
Tradeoff Gym
Home
Learn
Lab
Quiz
Stats
← Lab
Compare and choose
Look-alike concepts side by side. Mixing sets is harder, and better for telling them apart.
Mixed
All sets at your level, mixed
Or practise one set
Pushing updates to clients
Server-Sent Events · WebSockets · Long polling · Junior
Cache write strategies
Cache-aside · Write-through · Write-back · Junior
During a network partition
Prefer consistency (CP) · Prefer availability (AP) · Mid-level
Storage engines
LSM tree · B-tree · Senior
Delivering messages
Work queue · Pub/sub topic · Junior
Load balancing layer
Layer 4 (TCP/UDP) · Layer 7 (HTTP) · Intern
Scaling the database
Add read replicas · Shard the data · Mid-level
Processing data
Batch job · Stream processing · Senior
Short-link redirects
301 Moved Permanently · 302 Found (temporary) · Junior
Transactions across services
Two-phase commit · Saga · Senior
Preventing conflicting updates
Distributed lock with fencing · Optimistic version check · Senior
Choosing a data store
Relational (SQL) · Wide-column · Key-value · Graph · Junior