Hello dear friends,
Let's assume we have a project has the following Microservices (AuthMicroservice, ServiceA, ServiceB)
Lets assume that AuthService responsible about authentication and it contains an entiti/table called User.
In the service A and B there are some entities/tables which need the UserId of the User who is stored in AuthService,
In both service A and B when a new yser created in the AuthService's DB it automatically addded to tables (Users) in Services A and B, but without all the detailed info as in AuthService's DB
So what is best approach when a User created in the AuthService sent automatically to other services to store it in their tables?
I'm thinking to use the functionality of a message broker like RabbitMQ.
So from your experience what do you think?