D
D
Django Almighty2021-10-11 08:59:51
RESTful API
Django Almighty, 2021-10-11 08:59:51

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

3 answer(s)
S
Sergey Gornostaev, 2021-10-11
@12345678XYU87654321

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.

Z
Zhainar, 2021-10-11
@zhainar

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).

�
âš¡ Kotobotov âš¡, 2021-10-11
@angrySCV

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 question

Ask a Question

731 491 924 answers to any question