6 · 15 lessons
Architecture in Python
Layers, ports and adapters, repositories, services and events: structure an application so each part can be tested alone.
Progress and your code are kept in this browser only.
- 1Layers and import direction
- 2Functional core, imperative shell
- 3Dependency inversion
- 4Entities and value objects
- 5A state machine for a workflow
- 6The repository pattern
- 7A service layer
- 8Unit of work
- 9Domain events and handlers
- 10Commands and queries
- 11Ports and adapters
- 12Errors at layer boundaries
- 13Caching behind an interface
- 14Plugin registries
- 15Configuration and wiring