Tag: redis
All the articles with the tag "redis".
Redis 8.10 vs Valkey 9.1 under load: the same Go app, the same 4-core machine
Redis 8.10.3 and Valkey 9.1.3 from their official images with default settings, behind one Go app, pushed by k6 from 10,000 to 45,000 requests per second. Peak throughput, latency per step, per-thread CPU and memory, with io-threads 1 and 3, plus the scripts to repeat it.
I built Uber's backend. Then one driver got 59 riders
Part 2 of a ride-hailing backend on kind: 10,000 drivers and 6,000 riders in an Istanbul-sized city push three Go pods to their CPU limit, a Redis geo index (GEOADD, GEOSEARCH) halves the work and fills the map again, and a check-then-set race hands one driver 59 riders until SET NX fixes it. Every manifest, command and number.
I built Uber's backend. It crashed at 5,000 drivers, and these three fixes held it up
A Go location service on a local kind cluster behind HAProxy, load-tested with k6. One pod gets OOMKilled at about 5,000 WebSocket drivers, three pods lose two thirds of the drivers, Redis pub/sub brings them back and a Horizontal Pod Autoscaler grows it to four pods at 10,000 drivers, with every manifest, command and number.
A Redis cache in Node.js after the first request: five checks you can run
The cache-aside demo goes from one second to two milliseconds. Here is the same app under twenty requests at once, after an update, with a counter that never expires and with a memory limit, each one measured.