Answer the question
In order to leave comments, you need to log in
One microservice or two?
Authentication microservice and user microservice. Should they be one service?
Login and password are sent to the authentication service. Next, he must send a post or get request to the user service to determine the correctness of the entered password.
Answer the question
In order to leave comments, you need to log in
One or two - depends on the factors specific to your situation. But if there are two, then it is more reasonable to store the login and password in the authentication service.
user authentication occurs in user microservices, the issuance of authorization tokens can occur on another microservice.
You can authorize not only users, but also other applications (if the request is, for example, backend - backend).
there is such an approach: to look at how much the entities with which you have to work intersect, and the terminology specific to the work - it seems to me that there is a complete intersection to the point of confusion - so I would do it as one service.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question