Spring MVC Rest Services - Number of Threads (Controller Instances)

前端 未结 3 576
滥情空心
滥情空心 2021-01-13 03:30

In our application we want to achieve higher throughput so I just want to know how threading works in Spring MVC controllers.

Thanks in advance for your help.

<
3条回答
  •  执念已碎
    2021-01-13 04:30

    Basically this has nothing to do with Spring. Usually each request is forked into a separate thread. So the usual thing to do here is finding the bottleneck. However there is a possibility that badly written beans that share state over thread boundaries and therefore need to be synchronized might have a very bad effect.

提交回复
热议问题