Skip to Content
Head First Software Architecture
book

Head First Software Architecture

by Raju Gandhi, Mark Richards, Neal Ford
March 2024
Beginner
486 pages
12h 45m
English
O'Reilly Media, Inc.
Content preview from Head First Software Architecture

Chapter 6. Layered Architecture: Separating Concerns

Image

What if your problem is simple and time is of the essence? Should you even bother with architecture? It depends on how long you want to keep what you build. If it’s disposable, throw caution to the wind. If not, then choose the simplest architecture that still provides some measurable organization and benefit, without imposing many constraints on speed of delivery. The layered architecture has become that architecture because it’s easy to understand and implement, leveraging design patterns developers already know. Let’s peel back the layers of this architecture.

Naan & Pop: Gathering requirements

Sangita likes simple meals, so she created an Indian-inspired mom-and-pop restaurant called Naan & Pop, specializing in flatbread sandwiches and sodas.

The restaurant needs a website where customers can place orders online. Since Naan & Pop is a startup with a small budget, it needs to be simple and created quickly.

Sangita has some specific requirements.

Image

Time to market

The restaurant is already open. The faster they can get the site online, the faster they can start making money. The site should be simple.

Image

Separation of responsibilities ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Clean Architecture: A Craftsman's Guide to Software Structure and Design

Clean Architecture: A Craftsman's Guide to Software Structure and Design

Robert C. Martin

Publisher Resources

ISBN: 9781098134341Errata Page