Advanced Web Application Architecture
Advanced Web Application Architecture
Advanced Web Application Architecture

About the Book

My last book, "Object Design Style Guide", ends with a field guide to objects. The field guide sketches a picture of controllers, application services, entities, values objects, repositories, and domain events, and how all these objects work together in a layered architecture.

In this book, "Advanced Web Application Architecture", I explain how these objects are the result of a quest to decouple core application logic from infrastructural concerns. The first part of the book describes in detail the refactoring strategies you can use to decouple your code from the web, the database, and the service container. The second part continues to show how the resulting objects (reusable use cases, unit testable domain models, and delivery mechanism-specific services) find their place in a layered architecture. An additional dimension gets added to this picture by discussing hexagonal architecture. We also touch on the concept of a bounded context and how it can help divide your application into manageable parts. In the last part we discuss testing, and find out how a layered, hexagonal architecture gives you a wide variety of more efficient and more effective testing options, way beyond functional tests.

About the Author

Matthias Noback
Matthias Noback

Matthias Noback has been building web applications since 2003. He is the author of A Year With Symfony, Principles of Package Design and Microservices for everyone. He is a regular blogger, public speaker and trainer.

Table of Contents

Part 1: Decoupling from infrastructure

Chapter 1: Introduction

Chapter 2: The domain model

Chapter 3: Read models

Chapter 4: Use cases

Chapter 5: Service Locators

Chapter 6: External services

Chapter 7: Time and randomness

Chapter 8: Conclusion

Part 2: Organizing principles

Chapter 9: Introduction

Chapter 10: Key design patterns

Chapter 11: Architectural layers

Chapter 12: Hexagonal architecture

Chapter 13: Contexts

Part 3: Testing


Authors have earned$8,698,431writing, publishing and selling on Leanpub,
earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.

Learn more about writing on Leanpub

The Leanpub 45-day 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets) and MOBI (for Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.

Learn more about writing on Leanpub