DEV Community

Discussion on: A different approach to User Sessions in Microservices using Redis

Collapse
 
honatas profile image
Jonatas de Moraes Junior

You can think of it as an isolation concern alright. However, session data is supposed to be shared, right?

Collapse
 
duktigdev profile image
David A.

This is complex issue. Finally I prefer the option 1:

Each microservice should receive token with permissions from middleware authorization microservice and handle Authorization of Permissions by himself.

And Other microservices, such as "Products", "Catalogs", "Orders" not have access to Authorization database (redis or other db no mater).

Thanks!