[GH-ISSUE #119] feat: add a secondary storage options for sessions and rate limiter #25457

Closed
opened 2026-04-17 15:41:25 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @Bekacru on GitHub (Oct 7, 2024).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/119

To optimize performance, we should have unified the session and rate limiter storage options. Currently, sessions rely on the primary database, while rate limiters can use either memory, the database, or custom storage. To improve access speed, we will implement the following improvements:

  • Enable users to specify a secondary storage option.
  • Add adapters for popular secondary storage solutions (e.g., Redis).
  • Make it easy for users to add their own custom adapters.
Originally created by @Bekacru on GitHub (Oct 7, 2024). Original GitHub issue: https://github.com/better-auth/better-auth/issues/119 To optimize performance, we should have unified the session and rate limiter storage options. Currently, sessions rely on the primary database, while rate limiters can use either memory, the database, or custom storage. To improve access speed, we will implement the following improvements: - Enable users to specify a secondary storage option. - Add adapters for popular secondary storage solutions (e.g., Redis). - Make it easy for users to add their own custom adapters.
GiteaMirror added the locked label 2026-04-17 15:41:25 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#25457