Architecture Patterns with Python
- Pages
- 280
- 2 editions
- First published
- 2020
- 1 language
Join or log in to shelve and rate Free, no password.
Overview
Description
A pragmatic guide to mastering architectural patterns in Python for building maintainable, testable, and scalable applications.
This book systematically introduces Test‑Driven Development (TDD), Domain‑Driven Design (DDD), and event‑driven architectures through a single example application, built incrementally across chapters. It adapts common enterprise architecture patterns—like repository layers, unit of work, message buses, and CQRS—for Pythonic use, combining theory with working code.
About the Book
The authors, software engineers at MADE.com, show how to use classic software architecture ideas (more commonly applied in Java and C#) in the Python ecosystem. The entire book builds out a single app step-by-step, using tools like Flask, SQLAlchemy, PyTest, Docker, and Redis.
Each chapter alternates between writing tests first and then implementing the logic to make the tests pass. This strict TDD approach helps readers deeply understand abstractions like message buses and aggregates in a hands-on, repeatable way.
Topics & Themes
Part 1: Domain modeling, repository pattern, unit of work, aggregates
Part 2: Event-driven architecture, domain events, message bus, command handlers, CQRS, dependency injection
Audience
Intended for intermediate Python developers working on complex applications who want to improve their architectural design skills. The book is especially useful for developers transitioning from monolithic apps to microservices or looking to enforce better boundaries and testability in their code.
Critical Reception
Widely praised in the Python and architecture communities. Described on Hacker News as a “goldmine for architecture patterns.” Some caution against over-engineering for smaller projects, but overall the book is valued for bringing enterprise design clarity into the Python world.
It’s also featured and recommended by respected voices like the Testing Goat blog for its strong emphasis on testing strategy.
Why It Matters
As Python finds greater adoption in large-scale, enterprise contexts, there's increasing need for structured approaches to architecture. This book provides practical, proven techniques—adapted to Python’s strengths and weaknesses—for building reliable systems that scale.
This description was created by AI.
Ratings & reviews
Log in to rate or review this book.
No written reviews yet.
Discussions
Talk about this book with other readers.
Log in to start a discussion.
No discussions yet.
Editions
-
Format not known O'Reilly Media, Incorporated 2020 280 pages English ISBN 9781492052203 Open Library
Details & links
- First published
- 2020
- Pages
- 280
- Languages
- Available in 1 language
Where to buy this book: see “Buy this book”
More about this book
Read a sample, borrow it or see other editions → openlibrary.org