You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sharing the database of a microservice with another microservice is really against the microservice principles. The correct way to do this when following the microservices model is to have your new service use the APIs of the users and messages services to work with those entities.
If you can, you should get a token from the client, which you can then use to authenticate internally to other microservices. If that is not possible, then you can allocate a token that is only valid for internal use between services, or maybe configure your services so that they only require authentication for external requests.
Hey Miguel,
I would like to extend the mircoflack chat app on one additional service named game.
This service should have access to the users and messages db.
I guess I have two options:
I guess regarding the microservice architecture the second option is preferable.
What would you advise?
The text was updated successfully, but these errors were encountered: