linagora / tmail-backend

GNU Affero General Public License v3.0
30 stars 17 forks source link

Experiment virtual threads with reactor #1082

Open vttranlina opened 1 month ago

vttranlina commented 1 month ago

The current source code is Java 21 and it supports virtual threads, We can experiment with it with reactor by setting the JVM argument -Dreactor.schedulers.defaultBoundedElasticOnVirtualThreads=true

Try it on staging, run Gatling performance test, and compare before/after

ref: https://spring.io/blog/2023/10/31/what-new-is-coming-in-reactor-core-3-6-0

chibenwa commented 1 month ago

Cool!

Please read completly virtual thread limitations regarding thread pinning and do an overall report here too.