Postmortem from last week's incident: a retry storm turned a 2-minute blip into a 40-minute outage. Exponential backoff + jitter + a retry budget fixed it. Full write-up in the thread below π [photo]
Distributed Systems Lounge
Technology Β· 8 members
Consensus, queues, caches and the failures between them. Share war stories, design docs and papers worth reading.
Recent posts
Which consistency model does your main datastore actually give you? Poll: Linearizable / Read-your-writes / Eventual / No idea π
π Welcome! Start here: the three papers every member should read. 1. Time, Clocks, and the Ordering of Events (Lamport) 2. In Search of an Understandable Consensus Algorithm (Raft) 3. Dynamo: Amazon's Highly Available Key-value Store
Recent conversation
Morning all. We finally moved our job queue off Redis lists onto Postgres SKIP LOCKED. p99 enqueue went from 40ms to 6ms π€―
Boring tech wins again. How many jobs a second are you pushing through it?
Around 2.5k/s at peak. Partitioned the table by day so vacuum keeps up.
Did you keep Redis for anything? We use it as a rate limiter in front of our inference API.
Still there for rate limits and sessions. Just not for anything we can't afford to lose.
Please tell me the Redis instance isn't open to the VPC without auth π
ACLs + TLS, I promise. You audited it last quarter, remember?
Question from a mobile person: when do you reach for Kafka vs a plain queue?
When you need replay, or more than one consumer reading the same stream. If it's just 'do this work later', a queue is fine.
+1. Kafka is a log, not a queue. Treat it like one and it's great.
Saving this thread for the next time a client asks for 'real-time microservices' π
Join Distributed Systems Lounge to see more and chat live β
Rules
- Be kind, especially to people paged at 3am
- Link the paper, not a screenshot of it