SPRING MVC VS. SPRING WEBFLUX
-
build service image
- under folder flux:
docker build -t vioao/flux .
- under folder mvc:
docker build -t vioao/mvc .
- under folder web:
docker build -t vioao/web .
- under folder flux:
-
run the service with limited cpu and memory
docker-compose --compatibility up
-
begin performance test with jmeter, just import the configuration file under folder jmeter and configure the thread group by yourself.
-
you can configure your jmx to monitor the resources usage
Under the static folder, there is a stress test result(with 1000 threads, 10 ramp-up period, 50 execute times) to test the issue that there is remote network call with 10ms delay.