Exchange between bounded context with domain events
-
Install libraries
mvn clean install
-
Run RabbitMQ
docker-compose up -d
-
Run
configuration-service
-
Run both services
DomainEventsPersons
andDomainEventsSchool
-
ToDo: add to docker scripts
-
-
Create group TEACHER in service DomainEventsPersons
http post :8084/rest/api/groups role=TEACHER
-
ToDo: Domain events published on repository.save(aggregateRoot) just when aggregate is not new?
-
-
Create person in service DomainEventsPersons
http post :8084/rest/api/persons fullName:='{"family": "Ivanova", "name": "Irina", "secName": "Victorovna"}' user:='{"username": "IvanovaIV"}'
-
Get id from reply and assign person to role TEACHER
http post :8084/rest/persons/<id>/assignToRole/TEACHER
-
Check whether the teacher should be created in DomainEventsSchool service
http :8085/rest/api/teachers
-
Spring Team Spring Framework
-
Eric Evans Domain-Driven Design
-
Vaughn Vernon Implementing Domain-Driven Design samples
-
Spring Data Team Spring Data
-
Oliver Gierke Domain-Driven Design and Spring
-
Oliver Gierke Domain events implementation in Spring Data
-
Paul Henke, Andreas Zaschka, Oliver Gierke Salespoint Framework
-
Zoltan Altfatter Publishing domain events from aggregate roots
-
RabbitMQ Team 6 RabbitMQ Tutorials
-
Spring AMQP Team spring-amqp-samples
-
Moisés Macero Produce and Consume JSON messages with Spring Boot AMQP and RabbitMQ
-
Jakub Roztocil HTTPie – command line HTTP client