Since this project uses clients.inMemory(), it stores all access tokens in a single machine's memory, which makes it impossible to run multiple servers behind a load balancer.
To make this project scalable, I come up with three ideas for now:
Use clients.jdbc() and store tokens into database
Store tokens in Redis.
Use JwtTokenStore. Since JWT is a kind of self-contained token, it is stateless and should be scalable.
Since this project uses clients.inMemory(), it stores all access tokens in a single machine's memory, which makes it impossible to run multiple servers behind a load balancer.
To make this project scalable, I come up with three ideas for now:
clients.jdbc()
and store tokens into databaseJwtTokenStore
. Since JWT is a kind of self-contained token, it is stateless and should be scalable.As to 2 and 3, I don't know how to do it exactly.
Any ideas?