RedisMessageListenerContainer
messages are received twice
#3111
Labels
status: waiting-for-triage
An issue we've not yet triaged
Issue
I’m developing a Spring-based web application in Kotlin that pushes messages from Redis Pub/Sub to active SSE (Server-Sent Events) connections. However, while running integration tests, I discovered that messages are being processed twice.
My code
Config
Controller
Subscription Manager
Connection pool
Notification listener
Integration test:
Console output:
Workaround
When I modify the bean configuration to add a dummy listener at startup and initialize message listening eagerly, the issue is resolved.
Console output:
The text was updated successfully, but these errors were encountered: