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

Database Session State pattern #1292

Open
iluwatar opened this issue Jul 7, 2020 · 0 comments
Open

Database Session State pattern #1292

iluwatar opened this issue Jul 7, 2020 · 0 comments

Comments

@iluwatar
Copy link
Owner

iluwatar commented Jul 7, 2020

Description:

The Database Session State design pattern is used to manage user session data by storing it in a relational database. This pattern is particularly useful for maintaining session state across multiple servers in a web farm or distributed system, ensuring consistency and reliability.

Main Elements of the Pattern:

  • Session Data Storage: Store user session data in a relational database.
  • Session Identifier: Use a unique session identifier to fetch and update session data.
  • Database Operations: Implement CRUD operations to manage session data.
  • Session Expiry: Handle session expiration and cleanup of stale data.
  • Concurrency Handling: Ensure thread-safe operations and handle concurrent access to session data.

References:

  1. Martin Fowler - Database Session State
  2. YouTube Video on Database Session State
  3. Java Design Patterns - Contribution Guidelines

Acceptance Criteria:

  1. Implement a robust solution for storing and retrieving session data from a relational database.
  2. Ensure proper handling of session identifiers, session expiration, and cleanup mechanisms.
  3. Provide comprehensive documentation and examples demonstrating the usage of the Database Session State pattern in the project.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

1 participant