Professional Documents
Culture Documents
TDD and Hexagonal Architecture in Microservices CraftHub
TDD and Hexagonal Architecture in Microservices CraftHub
Valentina Cupać
Founder & Technical Coach @ Optivem
2. Test Automation - Testing Microservices using Unit Testing, Integration Testing, Component Testing
1. Hexagonal Architecture
Foundational Overview
“Create your application to work without either a UI or a database so you can run
automated regression-tests against the application, work when the database
becomes unavailable, and link applications together without any user involvement.”
- Alistair Cockburn
https://alistair.cockburn.us/hexagonal-architecture/
TDD and Clean Architecture - Use Case Driven and Domain Driven Design
Hosted by: Ticino Software Craft
https://www.youtube.com/watch?v=UubZZOPP500
2. Test Automation
Microservice Architecture
(microservice) (adapters) (core)
Microservice Testing
Backend (Microservices)
Third Party
Frontend Systems
API Gateway
MS1 MS2
Message Broker
MS3
Application Core
Driver Adapters
Integration Test HTTP API
Message Consumer
Driver Port
Unit Testing
Application Core
System
Third Party
User Systems
Use Case
Backend (Microservices)
API Gateway
User Frontend Third Party
MS1 MS2 Systems
Message Broker
MS3
Use Case Segment
Backend (Microservices)
API Gateway
User Frontend Third Party
MS1 MS2 Systems
Message Broker
Use Case Segment
MS3
Other Communication (not in this Use Case)
Contract
Backend (Microservices)
API Gateway
User Frontend Third Party
MS1 MS2 Systems
Message Broker
Use Case Segment
MS3
Other Communication (not in this Use Case)
4. Code Demo
Thank You
Valentina Cupać @ Optivem
Founder Technical Coach
E valentina.cupac@optivem.com
W www.optivem.com