You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Provide a general use TaskExecutor for background tasks #5082
Several parts of Spring Boot, and even more Spring Cloud could benefit from running tasks in the background or in parallel (see #5066 for example). It would be useful if we provided a common TaskExecutor so that threads could be shared.
Reacted by Pedro Alvarado, 小林, Cemalettin Koc, Vedran Pavic, Guillaume, Nikita Salnikov-Tarnovski and Petar Tahchiev
I have such a need on start.spring.io as well: I'd like to process events asynchronously and it would be nice if I could easily configure an Executor for that. Note that it's slightly different than this description. We would have to bind (somehow) that to @EnableAsync
@vpavic Yeah, I'd love to see this in 2.0 but we won't get to it for a while. We've front loaded the 2.0 plan with all the reactive work and breaking changes (basically anything that we can't slip).
As with Spring 5.0.8 a new warning is logged, I guess more and more people would find a global AsyncTaskExecutor helpful (or at least one for Spring MVC) which can be configured via properties.
2018-07-31 07:38:43.246 WARN 55362 --- [nio-8080-exec-9] o.s.w.s.m.m.a.ReactiveTypeHandler :
!!!
Streaming through a reactive type requires an Executor to write to the response.
Please, configure a TaskExecutor in the MVC config under "async support".
The SimpleAsyncTaskExecutor currently in use is not suitable under load.
-------------------------------
Controller: de.codecentric.boot.admin.server.web.ApplicationsController
Method: applicationsStream
Returning: reactor.core.publisher.Flux<org.springframework.http.codec.ServerSentEvent<de.codecentric.boot.admin.server.web.ApplicationsController$Application>>
!!!
Activity
vpavic commentedon Feb 3, 2016
👍
snicoll commentedon Feb 4, 2016
I have such a need on start.spring.io as well: I'd like to process events asynchronously and it would be nice if I could easily configure an
Executorfor that. Note that it's slightly different than this description. We would have to bind (somehow) that to@EnableAsynccemo commentedon Feb 27, 2016
👍
spencergibb commentedon Feb 27, 2016
Like @philwebb mentioned, spring-cloud has the need as well, see spring-cloud/spring-cloud-consul#146
wilkinsona commentedon May 18, 2016
@sunlin901203 As @snicoll already asked, please use Stack Overflow for this sort of question
sunkolin commentedon May 19, 2016
i only want to config a executor in
application.properties. I do not want to use@EnableAsyncand@Asyncand i do not want usetoo.i want config executor simple in application.properties like
vpavic commentedon May 31, 2016
Any feedback on the current status of this issue, considering it was recently removed from the
1.4.0.RC1?wilkinsona commentedon Jun 1, 2016
It's something that we want to do, but it's not going to make it into 1.4
vpavic commentedon Jan 10, 2017
Are there any chances we'll see this in Boot 2.0? Thanks.
philwebb commentedon Jan 18, 2017
@vpavic Yeah, I'd love to see this in 2.0 but we won't get to it for a while. We've front loaded the 2.0 plan with all the reactive work and breaking changes (basically anything that we can't slip).
joshiste commentedon Jul 31, 2018
As with Spring 5.0.8 a new warning is logged, I guess more and more people would find a global AsyncTaskExecutor helpful (or at least one for Spring MVC) which can be configured via properties.
joshiste commentedon Jul 31, 2018
p.s. #1563 looks duplicate
snicoll commentedon Jul 31, 2018
Thanks @joshiste
Duplicate of #1563