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.
  1. HttpSession: HttpSession replace HttpSession in application container with support of providing sessionId in header to work with RESTFUL APIS.
  2. WebSocket: It keeps alive HttpSession when receiving webSocket message.
  3. 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.

  1. Spring Session Core provides core Spring Session functionality and API.
  2. Spring Session Data Redis provides SessionRepository and ReactiveSesssionRepository implementation backed by Redis and Configuration support.
  3. Spring Session JDBC provides SessionRepository implementation backed by a relational database and configuration management.
  4. 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

Popular posts from this blog

Maven Setting Mirror

Hibernate Version 5.0