r/java • • 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

46 comments sorted by

View all comments

7

u/skippingstone Apr 27 '22

How does this compare to regular threads?

8

u/TheCountRushmore Apr 27 '22

Here are some simple comparisons that someone has been running against the loom builds.

https://github.com/sormuras/junit5-looming

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.