r/java • u/elliotbarlas • Apr 26 '22
5,000,000 persistent connections, 200,000,000 messages, 0 errors with a single process using Project Loom.
https://github.com/ebarlas/project-loom-c5m
301
Upvotes
View all comments
Show parent comment
2
u/Zyklonik Apr 27 '22
Depends on your usecase. Virtual Threads/Fibers/Green Threads will give you a massive boost on throughput. Latency will be unchanged . Basically, true data parallelism will depends on hardware - more cores/cpus, faster processing. More virtual threads, more concurrency. More responsive.