Skip to content

Use virtual threads for auto-configured RedisMessageListenerContainer#50917

Closed
SebTardif wants to merge 1 commit into
spring-projects:mainfrom
SebTardif:fix/redis-listener-virtual-threads
Closed

Use virtual threads for auto-configured RedisMessageListenerContainer#50917
SebTardif wants to merge 1 commit into
spring-projects:mainfrom
SebTardif:fix/redis-listener-virtual-threads

Conversation

@SebTardif

Copy link
Copy Markdown
Contributor

Summary

Auto-configured RedisMessageListenerContainer ignored spring.threads.virtual.enabled. Kafka and Rabbit listener auto-configuration already use virtual-thread executors when that property is true.

Change

  • Add optional TaskExecutor support on RedisMessageListenerContainerConfigurer.
  • Provide a @ConditionalOnThreading(Threading.VIRTUAL) configurer bean that sets a virtual-thread SimpleAsyncTaskExecutor (same pattern as Kafka listeners).

Testing

Manual review against Kafka/Rabbit virtual-thread patterns. Format with project formatter in CI.

AI assistance

This change was developed with AI coding assistance. I reviewed the code.

Related to #50884

When spring.threads.virtual.enabled is true, configure the Redis message
listener container with a virtual-thread SimpleAsyncTaskExecutor, matching
Kafka and Rabbit listener auto-configuration.

Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jul 4, 2026
@wilkinsona

Copy link
Copy Markdown
Member

#50884 is already assigned to someone and therefore is not open for contributions. Thanks anyway for the PR.

@wilkinsona wilkinsona closed this Jul 4, 2026
@wilkinsona wilkinsona added status: declined A suggestion or change that we don't feel we should currently apply and removed status: waiting-for-triage An issue we've not yet triaged labels Jul 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: declined A suggestion or change that we don't feel we should currently apply

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants