Sahil Sarwar·Nov 2, 2025Webhooks — The Push-Based Design Behind Async CommunicationThis will be the start of a 3-part series on systems that seem familiar, which can be used interchangeably, but are quite different in how…
Sahil Sarwar·Oct 27, 2025The Magic Behind One-Click Checkout: Understanding IdempotencyWhile making a payment, if we end up submitting it twice, we don’t get charged twice.
Sahil Sarwar·Oct 27, 2025Designing Chat Schema in CassandraIn the last post, we put ourselves in the shoes of a Facebook engineer working on designing a database like Cassandra.
Sahil Sarwar·Oct 24, 2025How Facebook built CassandraWhen choosing between LSM vs B+ trees, we have to consider the type of workload (write vs read) and choose accordingly.
Sahil Sarwar·Oct 24, 2025Building Search at DiscordHow Discord implemented its highly requested search feature
Sahil Sarwar·Jul 16, 2025How gRPC works: Rebuilding gRPC from first principlesIn the last post, we saw that a normal REST call is based upon the HTTP/1 protocol. We also saw HOW HTTP/2 builds on the limitations of…
Sahil Sarwar·Jul 5, 2025How Meta Manages Millions of ShardsWelcome to the first edition of Breaking Prod, a monthly series where I try to break down some of the most interesting systems…
Sahil Sarwar·Jul 5, 2025Why RocksDB, Cassandra, and LevelDB Don’t Use B+ TreesWhen we think about indexes in a database, one common structure that comes to our mind is B+ trees. And it’s true!
Sahil Sarwar·Jul 5, 2025Why gRPC Is Fast: The Real Reason Is HTTP/2, Not Just ProtobufI have always wondered, WHY gRPC is so fast, faster than traditional REST APIs, the answer goes beyond just “binary encoding” or…
Sahil Sarwar·Jun 18, 2025Time and order in Distributed SystemsWhen working with a distributed system, it is essential to know which of the events happened first. If everything happened on a single…