Simulators
One idea each. Change the system, watch what happens, then read the section that explains why.
- Consistent hashingAdd and remove servers on a hash ring and watch how few keys move, next to how many hash % N would have moved.
- Rate limitingSend requests to a fixed window, a sliding log, a sliding counter and a token bucket at once, and watch each one decide: 200 or 429.
- Cache evictionRead keys through an LRU, an LFU and a FIFO cache at once, and watch which keys each one keeps, which it throws out, and its hit rate.
- Kafka consumer groups(premium)Add, remove and crash consumers in a group reading a six-partition topic, and watch lag, rebalances and hot partitions as they happen.