Simulators
Some ideas only click once you have broken them yourself. Each of these runs in your browser and works offline.
- Consistent hashing ringAdd and remove nodes and watch which keys move.
- Token bucket and leaky bucketSend bursts of requests through two rate limiters side by side.
- LRU cache walkthroughRead and write keys and see what gets evicted, and why.
- Load balancerRound robin against least connections when requests are uneven.
- CAP partitionCut the network between replicas and choose consistency or availability.
- B-tree vs LSM treeInsert the same keys into both structures and compare the writes.
- Raft leader electionCrash the leader, partition the cluster and watch terms and votes.
- Kafka partitions and consumer groupsProduce keyed messages, add consumers and trigger rebalances.
- Sharding calculatorWork out shard counts from data size, growth and write load.
- Back-of-envelope estimatorTurn users and usage into QPS, storage and bandwidth.