Event bus proof of concept with RabbitMQ and Spring Boot microservices.
-
fcproxy_service
- Rest controller
POST /user/logged-in
.- Publishes an
UserLoggedIn
event to the event bus.
- Publishes an
- Rest controller
-
user_service
- Listens to the event bus for
UserLoggerIn
events.- Writes the user to
user_database
. - Publishes an event
UserCreated
orUserUpdated
.
- Writes the user to
- Listens to the event bus for
-
basket_service
- Listens to the event bus for
UserCreated
orUserUpdated
events.- Writes the user to
basket_database
.
- Writes the user to
- Listens to the event bus for
-
user_database
- MySQL database. Only table
users
.
- MySQL database. Only table
-
basket_database
- MySQL database. Table
users
and more.
- MySQL database. Table
-
event_bus
- RabbitMQ server.
git clone git@github.com:davamigo/event-bus-poc.git