#systems at scale
2 posts · All tags
-
How Discord stores trillions of messages: from MongoDB to Cassandra to ScyllaDB
How Discord moved chat history from MongoDB to Cassandra to ScyllaDB: time-bucketed partitions, tombstone traps, hot partitions, and Rust request coalescing.
-
Idempotency keys: how payment APIs make retries safe
Notes on how APIs like Stripe use idempotency keys so clients can retry failed requests without charging a customer twice, plus a minimal implementation.