Non-FictionInformativeEducational

System Design Engineer eBook

A Coursebook on System Design Engineer

by Bloom Zena

  • English
  • 156 pages
  • 2026
  • SamEnrico

A Coursebook on System Design Engineer

Formats

Free sample

Chapter 1: The 15-Minute Mistake--–- The engineering manager looked at the whiteboard, then at his team, then back at the whiteboard. "We've spent three weeks designing this payment system," he said, "and it's beautiful. The database is sharded. The cache is distributed. The message queue can handle fifty thousand events per second.

But I just realized something. We never asked how much latency the business actually needs. We optimized for microseconds. The product requirement says two seconds is fine. We just burned three weeks building something three times more expensive than necessary."–- This scene repeats in engineering organizations every single day.

Smart engineers, given a design problem, immediately reach for distributed databases, complex caching layers, and sophisticated message brokers. They draw beautiful diagrams with boxes and arrows. They debate the merits of Cassandra vs. Cockroach DB. They argue about whether to use g RPC or REST.

And they are almost always starting in the wrong place.–- The most common failure mode in system design is not building something that breaks. It is building something that works perfectly but solves the wrong problem. It is optimizing for the wrong metric. It is spending fifty thousand dollars a month on infrastructure when five thousand would have sufficed. It is designing for five nines of availability when the business only needs three.

It is building a distributed system when a single-node Postgres instance would have handled the load for three years.–- This chapter exists to prevent that mistake. Before you draw a single box on a whiteboard, before you choose a database, before you write a line of code, you must answer one question: what does success actually look like? Not in vague terms like "fast" or "reliable." In specific, measurable, defensible terms that you can write down, share with your team, and use to make trade-offs when things get hard.–- The answer to that question is called a non-functional requirement. And getting it right takes about fifteen minutes. Getting it wrong costs months.The Requirement Trap: Why Smart Engineers Build the Wrong Thing–- Every system has two types of requirements.

The first type, functional requirements, answers the question "what does the system do?" Create a user account. Process a payment. Upload a photo. Send a message. These are the features.

These are what product managers write in specifications. These are what users see.–- The second type, non-functional requirements, answers the question "how well does the system do it?" The user account must be created in under two hundred milliseconds. The payment must be processed with 99.99% availability. The photo must never be lost. The message must be delivered exactly once.

These are invisible to users when they work and painfully obvious when they fail.–- Here is the trap. Functional requirements are easy to talk about. Everyone understands what "upload a photo" means. Non-functional requirements are harder. They require numbers.

They require trade-offs. They require admitting that you cannot have everything. So teams skip them. They assume "fast enough" and "reliable enough" will sort themselves out. They never do.–- Consider two hypothetical systems.

System A takes six months to build, costs five thousand dollars a month to operate, serves a million users with fifty millisecond latency, and has 99.9% availability. System B takes three months to build, costs fifty thousand dollars a month to operate, serves a million users with ten millisecond latency, and has 99.99% availability.–- Which system is better? The answer depends entirely on the non-functional requirements. If you are building a search engine for a hospital's emergency room, the lower latency might justify the higher cost. If you are building a internal reporting tool that runs once a day, the faster build time and lower cost are far more valuable.–- This is not obvious.

Most engineers instinctively prefer System B. Faster is better. More reliable is better. Lower latency is better. But "better" without a baseline is just chasing numbers.

The engineering team that builds System B for a use case that only needed System A has not succeeded. They have failed. They have wasted company money. They have delayed other features. They have made their system more complex and harder to maintain for no benefit.–- The requirement trap is the gap between what you build and what you should have built.

The only way out is to write down your non-functional requirements before you write a single line of code.The Two-Pass Framework: Requirements in Fifteen Minutes–- Extracting requirements is not a weeks-long process requiring expensive consultants. It is a fifteen-minute exercise that any engineer can do with a product manager and a whiteboard. The framework has two passes, and both passes carry equal weight. Neither is more important than the other. They are two sides of the same coin.–- Pass One: Functional Requirements.

What does the system do? Write down every feature the system must support. Do not prioritize. Do not evaluate. Just list.

Create user account. Log in. Reset password. Upload profile photo. Follow another user.

Receive notifications. Send direct message. Everything goes on the whiteboard.–- Pass Two: Non-Functional Requirements. For every functional requirement, ask "how well?" Then ask the same question for the system as a whole. How fast?

How reliable? How secure? How scalable? How cheap? How maintainable?

The answers become your non-functional requirements.–- The magic happens in the interaction between these two passes. When you ask "how fast does the profile photo need to upload?" you might discover that photos can upload in the background while the user does other things. That discovery changes your architecture. You no longer need a synchronous upload endpoint. You can use a queue.

You just saved yourself months of work.–- Here is a concrete example from an e-commerce company that learned this lesson the hard way. Their functional requirement was "display product recommendations on the homepage." Their first non-functional requirement was "under fifty milliseconds." They built a sophisticated in-memory recommendation engine with Redis caching and precomputed similarity scores. It cost them twenty thousand dollars a month.–- Then someone asked the product manager: "What happens if recommendations load in two hundred milliseconds instead of fifty?" The product manager thought for a moment. "Nothing," she said. "The user probably wouldn't notice.

The rest of the page takes three hundred milliseconds to render anyway." They removed the caching layer. The recommendations now load in one hundred eighty milliseconds. The infrastructure cost dropped to three thousand dollars a month. The user never noticed the difference.–- That is the power of writing down non-functional requirements and then questioning them. Not every number needs to be optimized.

Some numbers just need to be good enough.The Four Golden Signals: What to Measure–- Google's Site Reliability Engineering team, after running some of the largest distributed systems in human history, distilled system health down to four measurements. They call them the Four Golden Signals. Every non-functional requirement you write should map to at least one of these signals.–- Latency is the time it takes to complete a request. Measured from the moment the request arrives to the moment the response leaves. Always measure latency at percentiles, never averages.

An average latency of one hundred milliseconds sounds great until you realize that ninety-nine percent of requests finish in ten…

This is the end of the free sample. Get the eBook to keep going. Buy now

About this book

A Coursebook on System Design Engineer

Details

Author
Bloom Zena
Publisher
SamEnrico
Language
English
Genre
Non-Fiction, Informative, Educational
Released
2026-06-03
Pages (approx.)
156
Available as
eBook, Audiobook

Read better in the ZLOADR app

Your eBooks on your phone or tablet. Sign in with your SamEnrico account and start reading.

More by Bloom Zena

See all

You may also like

See all