Non-FictionInformativeEducational
Software Architecture and Design Patterns eBook
A Coursebook on Software Architecture and Design P
by Sykes Halley
A Coursebook on Software Architecture and Design Patterns
Formats
Free sample
Chapter 1: The Seven Decisions…--Every developer remembers the moment they inherited a system that felt like it was designed by a committee of angry squirrels. You open the codebase, trace a single feature request through fourteen layers of indirection, discover that changing a field name requires updating nine microservices, and realize the person who wrote the deployment script left the company three years ago. That is not bad luck. That is the result of decisions—decisions that seemed reasonable at the time, made by well-intentioned people who did not realize they were building a trap for their future selves.This book exists because of a simple observation: most software fails not because the developers were incompetent, but because the architecture was not designed for change. The code worked on day one.
It passed the tests. It shipped on schedule. And then the product manager asked for a small adjustment, and the entire system shuddered like a bruised animal. A week later, the engineering team was still untangling dependencies. A month later, they were discussing a rewrite.
Two years later, the rewrite was abandoned, and the original system limped along, accruing technical debt like a credit card with no limit.I have lived this story more times than I care to admit. I have been the developer who copied a Singleton pattern from Stack Overflow without understanding why it was dangerous. I have been the tech lead who approved a microservices architecture for a team of five. I have been the architect who drew beautiful diagrams that bore no resemblance to the running system. And I have sat in the post-mortem meeting where we asked the only question that matters: how did we get here?The answer, always, came down to a handful of decisions.
Not hundreds. Not thousands. Seven, on average. Seven architectural decisions that, once made, locked the system into a trajectory of pain or prosperity.Welcome to Chapter 1. We are going to talk about those seven decisions.
Not the technical details—those come later, in the remaining eleven chapters. Here, we are going to talk about how to think. Because before you can apply a design pattern or choose an architectural style, you need to understand what makes a decision architectural in the first place, why most teams make these decisions without realizing they are making them, and how a single question can save you from rewriting everything eighteen months from now.This chapter is your compass. It will not teach you microservices or SOLID principles or CQRS. It will teach you to recognize the difference between a detail and a structure, between a choice and a commitment, between a hack and a debt.
By the end of these pages, you will look at your current project differently. You will see the fault lines. You will hear the alarm bells that your colleagues are ignoring. And you will know, for the first time, what it actually means to architect software.Let us begin.The Myth of Big Design Up Front There is a caricature of the software architect that persists in the industry, and it goes something like this: the architect sits in a glass tower, disconnected from reality, drawing perfect UML diagrams on a whiteboard while developers toil in the trenches. The architect produces a two-hundred-page document titled "Final Architecture v23." The developers implement it exactly as specified.
The project succeeds gloriously.Nobody actually believes this, and yet the fear of being accused of "Big Design Up Front" (BDUF) has caused an equally damaging reaction: the deliberate abdication of architectural thinking. Teams proudly announce that they have "no architecture" because they are "agile." They start coding on day one, refactoring as they go, trusting that the structure will emerge like a statue from marble. Sometimes it does. Most of the time, it produces a pile of marble chips and a vague shape that resembles a horse if you squint.The truth lies somewhere in the middle, and it is more subtle than either extreme admits.Architecture is not a phase. It is a set of decisions.Specifically, architecture is the set of decisions that are both expensive to change and difficult to reverse once the system is in production.
Choosing a programming language? Architectural. Choosing a database? Architectural. Deciding that the payment service should communicate with the inventory service via asynchronous events rather than synchronous REST calls?
Architectural. Deciding that the logging library should be SLF4J instead of Log4j? Not architectural—you can change that with a find-and-replace.The agile manifesto did not kill architecture. It killed unnecessary architecture—the kind where you design for thirty future requirements that never materialize, building extensibility hooks for features nobody asked for. What survived, and what this book will teach you, is just-enough architecture: the minimal set of decisions that give your system shape without locking it into a coffin.So how do you know which decisions are architectural?
Ask this question, and ask it ruthlessly:If I change this decision six months from now, how many parts of the system will break, and how many people will need to coordinate?If the answer is "a lot, and a lot," you are looking at an architectural decision. If the answer is "one file, and just me," you are looking at implementation detail. The architect's job is to identify the first kind, make them intentionally, and defer the second kind for as long as possible.The Seven Decisions That Shape Every System Over the past decade, analyzing dozens of successful and failed projects across startups, enterprises, and open-source ecosystems, I have observed that every software system—regardless of domain, scale, or programming language—rests on seven fundamental architectural decisions. These are not the only decisions, but they are the ones that, if made poorly, cannot be fixed with a refactoring ticket. They require rewrites, migrations, or organizational upheaval.Here they are, presented as questions.
By the end of this book, you will have sophisticated answers to all seven. For now, let us simply name the enemy.1. How do we separate the system into components?This is the decomposition question. Do you organize by technical layer (controllers, services, repositories)? By business capability (orders, inventory, users)?
By some hybrid? The wrong answer produces the distributed monolith—many deployable units that are still tightly coupled—which is worse than a monolith.2. How do the components communicate?Synchronous or asynchronous? Events or commands? REST or g RPC or message queue?
This decision determines whether your system can scale, whether it can survive network partitions, and whether your developers can understand a single request from start to finish.3. Where does the data live?One database or many? Shared tables or database per service? Who owns which pieces of data, and who can read them? Data decisions outlive code decisions.
You can rewrite a service in a weekend. Migrating a terabyte database with no downtime takes months.4. How do we handle failure?What happens when a service crashes? When the network lags? When a database connection pool exhausts?
Systems that ignore this question work perfectly until the day they catastrophically do not. Systems that answer it intentionally degrade gracefully, hiding failures from users or presenting…
This is the end of the free sample. Get the eBook to keep going. Buy now
About this book
Details
- Author
- Sykes Halley
- Publisher
- SamEnrico
- Language
- English
- Genre
- Non-Fiction, Informative, Educational
- Released
- 2026-05-18
- Pages (approx.)
- 159
- 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 Sykes Halley
Governor's Corporate Relocation WinSykes Halley$11.99
Collaboration Quality MetricsSykes Halley$11.99
Alibaba RFQ Strategy GuideSykes Halley$11.99
Amazon Seller Envy GuideSykes Halley$11.99
The NASA Nap MethodSykes Halley$11.99
The Money Hoarding Release GuideSykes Halley$11.99
Thyroid MythsSykes Halley$11.99
Shareholder Revolt LeadershipSykes Halley$11.99
The Velvet Conspiracy: Scandal at the Court of Marie AntoinetteSykes Halley$11.99
The Celtic Pioneers of the Southern Seas: Australia's Frontier BuildersSykes Halley$11.99
Silk Road to Freedom: How Ross Ulbricht’s Darknet Empire FellSykes Halley$11.99
The Mineral Guide to HapkeiteSykes Halley$11.99You may also like
Hong Kong Handover 1997Dunn Johnnie$11.99
Zumba For Postnatal Recovery CourseNeal Christian$11.99
Zumba for BeginnersLadner Nikia$11.99
YouTube Comment Mining GuideHumes Pandora$12.99
Worry Box MeditationCarlin Rudy$11.99
Workplace Stress MeditationNguyen Lynn$11.99
Workplace Stress and Sleep RepairHawley Ivory$11.99
Workplace Perfectionism CureDelaney Jeffry$11.99
Workplace Injustice Anger GuideWallen Isabelle$11.99
Work Addiction and Burnout LinkGreenwood Ester$11.99
Women in Yoga and WellnessBeattie Galina$11.99
Women in Stand Up ComedyChun Evangeline$11.99