1.6.1 Session management in Load Balancing Flashcards

1
Q

What is an HTTP session?

A

A continuous sequence of interactions between a user and a web application that maintains state

A session spans multiple user interactions, maintaining user-specific information for a defined period.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the components of an HTTP session?

A
  • Session State
  • Session Attributes
  • Timespan
  • Scope
  • Storage
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the timespan of an HTTP session?

A

Begins with the first interaction and typically ends after inactivity (often 30 minutes)

The scope encompasses all interactions between a single user and the application.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the role of a Unique Session ID in HTTP sessions?

A

Assigned to each user to maintain a mapping between Session ID and user data

Client sends Session ID with each request, usually via cookie.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does serialization in session management refer to?

A

The process of converting session objects into a format that can be stored or transmitted

It enables session data to be stored persistently and transmitted between servers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the technical requirements for serialization in session management?

A
  • All session attributes must implement Serializable interface
  • Complex objects must have all components serializable
  • Transient fields excluded from serialization
  • Version IDs should be managed for class changes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is sticky session load balancing?

A

Ensures user requests consistently route to the same server

It creates affinity between user and server to maintain session continuity.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the implementation methods for sticky sessions?

A
  • Cookie-Based
  • IP-Based
  • Server-Side
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the advantages of sticky session load balancing?

A
  • Consistent session access
  • Reduced session replication
  • Better cache utilization
  • Improved performance
  • Simplified session management
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the disadvantages of sticky session load balancing?

A
  • Server failure impacts users
  • Uneven load distribution possible
  • More complex configuration
  • Potential scalability limitations
  • Additional memory usage
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the different session storage architectures in distributed systems?

A
  • Centralized Session Store
  • Distributed Cache
  • Database Storage
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How does session replication work in clustered environments?

A

Sessions are copied between servers with primary and backup copies maintained

It includes automatic synchronization between nodes and failover capability.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the challenges of session replication?

A
  • Network bandwidth consumption
  • Increased memory usage
  • Serialization overhead
  • Consistency management
  • Failover complexity
  • Performance impact
  • Resource synchronization
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the performance considerations for session management?

A
  • Session Size Management
  • Data Storage Optimization
  • Serialization Optimization
  • Network Considerations
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What strategies can be used for optimizing session size?

A
  • Keep sessions small (<1KB ideal)
  • Only store essential data
  • Use lazy loading when possible
  • Clean up unused attributes
  • Monitor session growth
  • Implement size limits
  • Regular session cleanup
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the primary-backup model in high availability for session management?

A

An architecture with an active primary server and hot standby backup

It includes automatic failover and data synchronization.

17
Q

What are the security considerations for session management?

A
  • Secure session creation
  • Strong session IDs
  • Session timeout policies
  • Re-authentication for sensitive actions
  • Role-based access control
  • Session fixation prevention
  • Cross-site scripting protection
18
Q

What are the backup strategies for disaster recovery in session management?

A
  • Regular session backups
  • Incremental backups
  • Point-in-time recovery
  • Geographic redundancy
  • Backup verification
  • Recovery testing
  • Automated backup procedures
19
Q

What monitoring areas are essential for session management?

A
  • Performance Metrics
  • Health Checks
20
Q

What are the tasks involved in monitoring session management?

A
  • Regular cleanup of expired sessions
  • Performance optimization
  • Security updates
  • Configuration reviews
  • Capacity planning
  • Backup verification
  • System updates
21
Q

What are the migration strategies for session migration?

A
  • Live Migration
  • Scheduled Migration
22
Q

Fill in the blank: The process of _______ allows session data to be transmitted between servers.

A

[serialization]