DeepRead
Cover of Architecture Patterns with Python

Architecture Patterns with Python

Harry J.W. Percival, Bob Gregory · 2020

Programming and computer science › Python

#2,848 most recommended

About the book

A practical guide to structuring medium-sized Python applications around a domain model, using domain-driven design, test-driven development and event-driven patterns. It works through a worked example, an order allocation service built with Flask, SQLAlchemy and a message bus, and is aimed at working engineers who already know basic Python. Business logic should live in a domain model that has no dependencies on the web framework, database or message broker, so it can be tested quickly with plain unit tests. Repositories, a service layer and a unit of work sit around that model to connect it to infrastructure, and dependency injection keeps those connections swappable. Domain events and a message bus let separate parts of a system react to changes without tight coupling, and the book argues that this approach scales from a single service toward microservices.

Written by Claude from what it knows of this book.

What Hacker News says 80% recommend · 13% critical

0510202020212022202320242022 peak · 10
This bookAverage book in Python

In the commenters’ own words

What Open Library readers say 4.67 from 3 ratings

  1. 52
  2. 41
  3. 30
  4. 20
  5. 10
  • 15 want to read
  • 1 reading
  • 4 have read

Only 3 ratings: treat the average as a hint.

Open Library’s page for the book

What critics say, via Wikipedia

No Wikipedia article about this book yet, so no critics to quote.

Reddit communities — coming later

The threads it came up in

Details

First published
2020
ISBN
9781492052203
Editions known
2 at Open Library
Open Library
OL21661812W

CQRSComputer sciencedependency injectiondomain-driven designevent-driven architecturemicroservicespythontest-driven development

Explore in the mosaic

Read next: its neighbours on the mosaic