Hexagonal Architecture in Monoliths and Microservices
summary
Hexagonal architecture isolates business logic from UI, DB and external services so unit tests cover most logic while integration tests exercise adapters and component tests exercise a whole monolith or microservice in isolation. Demo uses Java/Spring, HTTP gateways, message consumers (Kafka/Rabbit/RPC), and shows Testcontainers for realistic DB-backed component tests, fakes/mocks for other services, and cross-team contract testing for gateway implementations to catch mapping and protocol bugs.
AI-written summary · about
chapters (9)
- 0:00Introduction to speaker
- 1:17Hexagonal architecture basics
- 5:05Monolith application testing
- 7:12Microservices application
- 9:09System-level testing
- 13:31Integration testing
- 17:05Unit testing business logic
- 18:49Code demo walkthrough
- 22:54Conclusion and Q&A
related talks
37mTDD and Hexagonal Architecture in Microservices
46mHexagonal at Scale, with DDD and microservices!
47mHexagonal Architecture Level 2: How to write well…
52mWhy not all hexagons have eight sides
47mHexagonal Architecture in Practice, Live Coding That Will Make Your Applications More Sustainable
50mHexagonal Architecture in Practice, Live Coding That Will Make Your Applications More Sustainable
15mHexagonal Architecture: How to Beat Spaghetti Code?
01h 01mWhy not all hexagons have eight sides
