Chatty Chatter Join the conversation

Distributed Systems Lounge

Technology Β· 8 members

Consensus, queues, caches and the failures between them. Share war stories, design docs and papers worth reading.

#distributed-systems #backend #rust #kafka

Recent posts

arjun.mehta

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]

dimitri.kostas

Which consistency model does your main datastore actually give you? Poll: Linearizable / Read-your-writes / Eventual / No idea πŸ˜…

arjun.mehta

πŸ“Œ 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

arjun.mehta

Morning all. We finally moved our job queue off Redis lists onto Postgres SKIP LOCKED. p99 enqueue went from 40ms to 6ms 🀯

dimitri.kostas

Boring tech wins again. How many jobs a second are you pushing through it?

arjun.mehta

Around 2.5k/s at peak. Partitioned the table by day so vacuum keeps up.

rafiq.hasan

Did you keep Redis for anything? We use it as a rate limiter in front of our inference API.

arjun.mehta

Still there for rate limits and sessions. Just not for anything we can't afford to lose.

imran.qureshi

Please tell me the Redis instance isn't open to the VPC without auth πŸ˜…

arjun.mehta

ACLs + TLS, I promise. You audited it last quarter, remember?

brian.otieno

Question from a mobile person: when do you reach for Kafka vs a plain queue?

dimitri.kostas

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.

arjun.mehta

+1. Kafka is a log, not a queue. Treat it like one and it's great.

karan.malhotra

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

  1. Be kind, especially to people paged at 3am
  2. Link the paper, not a screenshot of it

Join Distributed Systems Lounge on Chatty Chatter