Session not replicated on session creation with Spring Boot, Session, and Redis

前端 未结 2 1807
误落风尘
误落风尘 2021-02-06 10:38

I\'m attempting to implement a microservices architecture using Spring Cloud\'s Zuul, Eureka, and my own services. I have multiple services that have UIs and services and each c

2条回答
  •  无人及你
    2021-02-06 11:17

    Spring Session support currently writes to the data store when the request is committed. This is to try to reduce "chatty traffic" by writing all attributes at once.

    It is recognized that this is not ideal for some scenarios (like the one you are facing). For these we have spring-session/issues/250. The workaround is to copy RedisOperationsSessionRepository and invoke saveDelta anytime property is changed.

提交回复
热议问题