Skip to main content

Remove profile-organization retrieval from validate

In the current implementation we are retrieving profile and organization related to active user every time we are validating a request. This means doing a request to Profile MS every time our BE receives a request.

Additionally, profile and organization info are not needed in most of the cases (class User is referenced more than 1000 times, but user.profile and user.organization are referenced only in few cases).

The suggested solution is to remove profile-organization retrieval from LocalStrategy.validate and retrieve them only when needed

Domain
AuthN-Z
Action
refactor
Department
Backend
Status: Completed

Log in to comment and vote

No comments yet

Be the first to share your thoughts.