Skip to content
All tags

#distributed-systems

9 entries tagged #distributed-systems

  • You Don't Need to Store 4 Billion Users to Count Them

    Post · Oct 03, 2026

    Counting unique visitors sounds like a set: add every user id, read its size. At a few billion ids that set is tens of gigabytes, kept only to produce one number. Do you need to remember who visited to count them?

  • How Does Facebook's Distributed Like Counter Work?

    Post · Oct 01, 2026

    A celebrity posts and a million people tap the heart in ten minutes, and every one of them sees a count that seems to keep up. One row with a number in it can't take that. So what does?

  • Transactional Outbox: Two Systems, One Commit

    Post · Sep 28, 2026

    Save to the database, then publish an event: two lines, two systems, and nothing that makes them agree. What happens when the process dies in between, and why every obvious fix still leaves a gap.

  • Event-Driven Systems: Stop Calling, Start Announcing

    Post · Sep 28, 2026

    A checkout handler that calls the ledger, the warehouse, the email service and analytics in a row is as slow as all of them added together and as fragile as all of them multiplied. And every team that cares about payments makes it a little worse.

  • Your Logging Sucks!

    Post · Sep 03, 2026

    Your checkout logs a line at every step, which looks like good observability. Then a customer says their payment failed, and you find out what those logs can't tell you.

  • What Breaks From 1k to 1M Requests Per Second

    Post · Aug 11, 2026

    One product-page endpoint, the same code, ten times more traffic, then ten times more again. Each step breaks something different, and the last one breaks something extra capacity can't fix.

  • Size a System on the Back of an Envelope

    Cheat · Sep 20, 2026

    The interviewer asks how much traffic you're expecting. Round to powers of ten, turn per-day into per-second, and end every number on the design decision it forces: one node, a cache, or a shard.