spring-projects / spring-projects/spring-session

[Spring Session Redis] Web session expiration notifications not delayed until application is up again?

Open
#1,923 1 comment 0 reactions 1 assignee View on GitHub

@eleftherias is already working on this.

Since Jan 19, 2022.

in: docs type: enhancement
Dominant language
Java
Stars
1.9k
Forks
1.2k
Avg merge
4h 27m
Merged PRs (30d)
55

Description

I opened a question on Stack Overflow but got no anwser yet, see https://stackoverflow.com/questions/69346392/spring-session-redis-web-session-expiration-notifications-not-delayed-until-appl

Current Behavior

Currently using Spring Session Redis in a Spring Boot 2.5.3 web application.

The application correctly receives web session expiration notifications from Redis, but AFAIK only if the application is up and running at that time. It seems that if the backend is stopped at that time (crash, planned maintenance, ...), the notifications are not "kept" or "delayed" until the backend is up again. They are simply lost.

In https://redis.io/topics/notifications from "if your Pub/Sub client disconnects, and reconnects later, all the events delivered during the time the client was disconnected are lost" I understand that this is the standard Redis behavior.

Expected Behavior

The notifications are not lost but "kept" or "delayed" until an application instance is up again.

My Requests

Is this indeed the current Spring Session Redis behavior ?

Could this be fixed in Spring Session Redis ?

Are some workarounds known ?

Could this limitation be mentioned in the documentation ?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.