Spring Webflux线程使用情况调研

2019-10-18  本文已影响0人  光谷电锯狂魔

Stack overflow: Threading model of Spring WebFlux and Reactor
Netty reactor thread modeling
Spring framework reference: webflux-concurrency-model

Spring MVC vs Spring WebFlux

image.png

Threading Model

Thread usage records in our server

Local Macbook pro 2015 15 inch', with 4 cores and 8 threads

Thread used in single call
Thread used in concurrent calls from 100 users

Using Gatling to make 100 concurrent calls on the Http apis:

Using Gatling to make 20 concurrent calls on the Websocket apis:

Thread used (Http and websocket have the same result):

Issue records

上一篇 下一篇

猜你喜欢

热点阅读