Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JDBC for caching/session storage #809

Open
DonaldChung-HK opened this issue Jul 19, 2024 · 0 comments · May be fixed by #840
Open

JDBC for caching/session storage #809

DonaldChung-HK opened this issue Jul 19, 2024 · 0 comments · May be fixed by #840

Comments

@DonaldChung-HK
Copy link

Describe The Problem To Be Solved
I am trying to deploy a distributed IAM and running a HA redis infrastructure will increase the complexity and chances of failure of the system. Thus, I propose adding JDBC support for external session storage.

Solution suggestion

  • Details of the technical implementation
    • Add spring-jdbc-session dependency
    • review and disable any caching strategy that is not suitable for SQL
    • (Optional) support a separate datasource(database) for session storage, most HA MySQL options will benefit from having caching at a separate DB as most IAM data are written in a low frequency while catching and session are accessed at high frequency.
  • Tradeoffs made in design decisions
    • May reduce performance as SQL are in general slower
  • Caveats and considerations for the future
    • Addition of Postgres option as it offers faster distributed HA options such as CockroachDB
@DonaldChung-HK DonaldChung-HK linked a pull request Sep 4, 2024 that will close this issue
@rmiccoli rmiccoli changed the title JDBC for Cacheing/session storage JDBC for caching/session storage Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant