Revisit how applicationTaskExecutor is utilized across various Spring integrations #44946
Labels
for: team-meeting
An issue we'd like to discuss as a team to make progress
status: pending-design-work
Needs design work before any code can be developed
status: waiting-for-triage
An issue we've not yet triaged
The current setup seems complex and might need reconsideration.
Spring MVC, Spring WebFlux, and Spring GraphQL all rely on a bean named
applicationTaskExecutor
. For Spring MVC and Spring WebFlux (spring.threads.virtual.enabled=true
), this bean must be of typeAsyncTaskExecutor
, whereas Spring GraphQL requires a bean of typeExecutor
.Spring WebSocket and JPA will use an
AsyncTaskExecutor
if either a single bean of thistype is available or if a bean named
applicationTaskExecutor
is defined.I suggest revisiting the
WebSocketMessageConverterConfiguration
andJpaRepositoriesAutoConfiguration
configurations to align them with Spring MVC,Spring WebFlux, and Spring GraphQL.
I am uncertain about GraphQL as it uses
applicationTaskExecutor
but with a differenttype.
The text was updated successfully, but these errors were encountered: