Ports and Adapters Architecture
summary
Shows a concrete Java example: a minimal tax calculator example wired from ports (interfaces) to adapters (JPA-like repo stub returning 15) and run as a small app in IntelliJ, demonstrating that domain code stays framework-free while infrastructure implements ports. Tests include fast unit tests on pure domain logic and an end-to-end Gherkin/Cucumber suite that Cucumber acceptance test passes. Discusses Spring/Quarkus, Testcontainers, Kafka/RabbitMQ, DTO anti‑corruption and transaction patterns.
AI-written summary · about
chapters (10)
- 0:00Introduction to architecture
- 1:02Defining ports and adapters
- 5:56Layer breakdown
- 11:55Ports and adapters mechanics
- 17:21Project folder structure
- 18:52Building a minimal example
- 24:08Testing strategies
- 32:22Domain driven design patterns
- 44:28Transaction management
- 53:33Microservices and conclusion
related talks
45mThe Hexagonal - Ports & Adapters Architecture
40mPorts and Adapters
50mEvolutionary Distillation of Architecture
51mA testable architecture
50mHexagonal Architecture in Practice, Live Coding That Will Make Your Applications More Sustainable
15mHexagonal Architecture: How to Beat Spaghetti Code?
48mHexagonal Architecture in Practice, the Live Coding That Will Make Your Apps Plain... (live)
21mTestable Architecture: Keep 'em Separated
