An edition of Architecture Patterns with Python (2020)

Architecture Patterns with Python

Enabling Test-Driven Development, Domain-Driven Design, and Event-Driven Microservices

  • 4.7 (3 ratings)
  • 7 Want to read
  • 1 Currently reading
  • 4 Have read

My Reading Lists:

Create a new list

  • 4.7 (3 ratings)
  • 7 Want to read
  • 1 Currently reading
  • 4 Have read

Buy this book

Last edited by Mek
October 16, 2025 | History
An edition of Architecture Patterns with Python (2020)

Architecture Patterns with Python

Enabling Test-Driven Development, Domain-Driven Design, and Event-Driven Microservices

  • 4.7 (3 ratings)
  • 7 Want to read
  • 1 Currently reading
  • 4 Have read

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.

Publish Date
Publisher
cosmicpython.com
Language
English

Buy this book

Book Details


Edition Notes

Copyright Date
2020

The Physical Object

Format
Web Book

Edition Identifiers

Open Library
OL53716656M

Work Identifiers

Work ID
OL21661812W

Community Reviews (0)

No community reviews have been submitted for this work.

Lists

History

Download catalog record: RDF / JSON
October 16, 2025 Edited by Mek Bulk tagging works
July 22, 2025 Edited by liz_s1032 added subjects generated by ChatGPT
December 11, 2023 Edited by kathrinpassig merge authors
December 11, 2023 Edited by AgentSapphire undo merge authors
August 26, 2020 Created by ImportBot import new book