Skip to content

Consider virtual threads support for ThreadPoolTaskExecutor/ThreadPoolTaskSchedulerΒ #42921

@bclozel

Description

@bclozel

As seen in spring-projects/spring-framework#33780 (comment), Spring Framework recently added virtual threads support for ThreadPoolTaskExecutor/ThreadPoolTaskScheduler. Java apps are not typically expected to pool virtual threads, but the use case there is about lifecycle management.

We should consider whether and how we want to support this use case, considering that:

  • spring.threads.virtual.enabled=true enables virtual threads globally and our community expects it to embrace best practices
  • so far, enabling this option switches to SimpleAsyncTaskScheduler/SimpleAsyncTaskExecutor and makes lots of configuration properties without effect. See the "Doesn't have an effect if virtual threads are enabled." mentions in the application properties docs

We should consider whether we want to support this use case through properties or through the existing customizers only.

Metadata

Metadata

Assignees

Labels

status: declinedA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions