-
Is there a way to reduce the number of requests made to Kratos in a microservice architecture? Here is the scenario: Let's say that I have 5 services, plus Kratos, running on Google Cloud Run or Heroku (API gateway not possible). Each service is hosted on a unique subdomain with a common TLD. Kratos will be providing authentication to the other services, and will have the session cookie configured to be shared across the common TLD (all apps will receive Kratos cookie on each api request). If I understand the correctly, each time a request is made to one of the services, that service will then need to make an additional request to the Kratos service "/whoami" endpoint to authenticate the incoming session cookie. Is there a way to avoid this chatter? The Kratos service will be receiving 5 times the number of requests as most services... If the session cookie is |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
As far as I am aware this is not supported out of the box right now, maybe @Benehiko can comment on this 😉 |
Beta Was this translation helpful? Give feedback.
As far as I am aware this is not supported out of the box right now, maybe @Benehiko can comment on this 😉