In this project,
- There are 3 microservices, when a user created via user-service that service insert a record onto user table(postgre) and it produce an event to user_service.user_created.0 topic.
- Notification-consumer service listen user_service.user_created.0 topic and simulates the logic of sending notification after the event it consumes after notification is sending successfully service insert a record onto couchbase notification bucket.
- User-address-service also listen user_service.user_created.0 topic and it consume events. According to user's address text information it insert a record onto user-address table(postgre)
-
Before run project you need to start docker desktop
-
After docker is up, run the docker-compose.yml (You can find it in the infra-setup folder.)
-
After the run docker-compose.yml file you will see docker desktop like this:
-
Continue With DB Connection Part
-
Check Topic is created or not http://localhost:9090/ (kafka ui)