xinra-oss / review-community

Other
2 stars 0 forks source link

Decide how to do authentication in regards to scaling #5

Closed erikhofer closed 7 years ago

erikhofer commented 7 years ago

Idea: Use JWT instead of session IDs.

Pros:

Cons:

Notes:

erikhofer commented 7 years ago

A good approach would be to have an API gateway that is hit with a session ID and talks to the backend with a JWT. This combines the pros of both. However, we probably want to use an existing load balancer (ELB?) and not a custom one.

For now, we should stick to Spring's built-in sessions. When we have to scale up, we can reconsider this issue (implementation should be easy enough to change). A distributed session cache is still a viable scaling solution.