How to make a async REST with Spring?

后端 未结 2 1838
走了就别回头了
走了就别回头了 2021-01-31 19:19

I\'m trying to make a small REST using Spring Boot. I\'ve never used Spring and used Java a long time ago (Java 7)!

In the last 2 years I have used only Python and C# (b

2条回答
  •  一向
    一向 (楼主)
    2021-01-31 19:45

    I'm facing performance issues when triggering Async methods. The Asynchronous child threads start executing very late (around 20 to 30 seconds delay). I'm using ThreadPoolTaskExecutor() in my main SpringBoot application class. You can also try the same if you consider perfomance as a factor.

提交回复
热议问题