Event Driven Sample (Kotlin, Spring boot)
Architecture
Hexagonal
or
ADOP
https://nrslib.com/adop/
Contexts
- Scrum
- Notification
- Shared
Execution
curl --location --request PUT 'localhost:8080/api/task/test-task-id/' --header 'Content-Type: application/json' --data-raw '{"changeStatus" : "DOING"}'
Flow
- TaskController::put
- TaskApplicationService::changeStatus (begin transaction)
- Task::registerEvent
- ApplicationEventPublisher::publishEvent
- finish transaction
- NotificationEventHandler::onTaskStatusChanged