In order to support failover of HttpSessions, a developer has chosen to use database session persistence. Which of the following approaches is MOST LIKELY to improve performance?
Answer(s)
- Cache as much information as possible in the HttpSession to minimize database access.
- Use the application database for session persistence to minimize the number of database connections required
- Use Compressed Sessions and the IBMSession.compress ( ) method to reduce the size of data in the session before persistence
- Use Manual Update and the IBMSession.sync( ) method to persist the session data only when it has been updated.
Correct Answer
Use Manual Update and the IBMSession.sync( ) method to persist the session data only when it has been updated.