Spring Session
Spring Session provides an API and implementation for managing a user's session information.
It also support clustered sessions without being tied to an application container-specific solution. Spring session support integration with the HttpSession, WebSocket and WebSession.
It also support clustered sessions without being tied to an application container-specific solution. Spring session support integration with the HttpSession, WebSocket and WebSession.
- HttpSession: HttpSession replace HttpSession in application container with support of providing sessionId in header to work with RESTFUL APIS.
- WebSocket: It keeps alive HttpSession when receiving webSocket message.
- WebSession: WebSession replace Spring WebFlux's WebSession in an application container neutral way.
Above thing can be achieved using Spring Session Core, Spring Session Data Redis, Spring Session JDBC, Spring Session HazelCast.
- Spring Session Core provides core Spring Session functionality and API.
- Spring Session Data Redis provides SessionRepository and ReactiveSesssionRepository implementation backed by Redis and Configuration support.
- Spring Session JDBC provides SessionRepository implementation backed by a relational database and configuration management.
- Spring Session Hazelcast provides SessionRepository implementation backed by Hazelcast and configuration Support.
Spring Session MongoDB provides an API and implementation for managing a user's session information stored in MongoDB by leveraging Spring Data MongoDB. Spring session mongoDB provides following feature.
- API and implementation for managing user's session.
- HttpSession: replace httpSession in an application container
- Clustered Session: Support cluster session without being tied to the specific application container
- Multiple Browser Session: Support managing multiple session support into the single browser
- RESTful APIS: Spring session allows providing session ids in header to work with RESTful APIS.
Conclusions:
Spring session is powerful tool for managing HTTP sessions. Spring Session has the simple goal of free up session management from the limitation of the HTTP Session stored in the server. It makes solution to share session data between services in the cloud without being tied to application container.
Comments
Post a Comment