A Simple Rule of Thumb for System Design

Mar 2026

One thing that becomes clear after studying enough system design examples, and encountering real challenges, is that the same patterns appear repeatedly.

At first, architectures can look very different from one another. But most systems end up solving similar categories of problems, and there are well-known approaches for each of them.

When read traffic grows, you can cache frequently accessed data, adding read replicas, or improving database indexes. It doesn’t make sense to refetch the same info (this just adds latency, potentially cost, and is unnecessary), so don’t.

When write traffic becomes the bottleneck, systems often distribute data using sharding, group operations through batching, or move work into asynchronous pipelines.

Applications that need live updates usually rely on persistent or semi-persistent connections such as websockets, server-sent events, or long polling.

However, if you open a connection, leaving it open can cause memory leaks. Many languages have some neat ways to deal with this. Here’s a really nice way to do this with ‘defer’ in golang from the boot.dev blog: https://www.boot.dev/blog/golang/defer-golang/, with the first in last out principle.

If you work in Python and use fastAPI, a common fix for websocket issues when I’ve encountered them is creating a ping-pong. Also for requests, it helps to use different connection and read timeouts. Short for connection, longer for read so you give ample time for the response to complete.

Long-running tasks are commonly pushed into background processing using queues, worker pools, or workflow engines rather than being handled during a request. Take care, but global workers pools have often worked well.

Reliability is usually addressed with mechanisms like retries with backoff, idempotent operations, circuit breakers, and systems that recover automatically when parts fail. In Python, tenacity is the best package for this I have used, alongside response headers. I find that waiting too long based on estimated response times ends up being worse than requesting too much and tuning down. Separating concerns into config files helps for experimentation.

In some architectures, reads and writes are separated entirely using patterns such as CQRS so each side can scale independently.

None of these ideas are unusual on their own. The useful takeaway is simply that most systems rely on the same small set of patterns, applied in different combinations depending on the problem.