Redis Cache Stampedes: Single Flight, TTL Jitter, and Stale-While-Revalidate
Control Redis cache stampedes with a tested Python refresh lease, TTL jitter, and bounded stale-data policies. Includes a reproducible lab and 15 integration tests.
Notes on life, design, and the digital world. Written with care, for the curious.
Control Redis cache stampedes with a tested Python refresh lease, TTL jitter, and bounded stale-data policies. Includes a reproducible lab and 15 integration tests.
A tested Python model shows how to commit Kafka offsets safely when workers finish out of order, with offset gaps, bounded queues, and assignment changes.
Build a bounded asyncio pipeline with Queue and TaskGroup. Test backpressure, memory limits, cancellation, and the gap between concurrency and admission.