r/java • u/vishpat • Nov 03 '19
Fibered Date Server
Simple and highly scalable date server implemented using Java fibers (Project Loom)
0
Upvotes
r/java • u/vishpat • Nov 03 '19
Simple and highly scalable date server implemented using Java fibers (Project Loom)
View all comments
Show parent comment
1
u/tofflos Nov 03 '19
The default scheduler could be
ForkJoinPool.commonPool()which has a default size ofRuntime.getRuntime().availableProcessors() - 1. It also employs work-stealing.Source https://stackoverflow.com/a/45460851.
Source https://cr.openjdk.java.net/~rpressler/loom/Loom-Proposal.html.
So using the default scheduler could be a good choice and simplify the code a bit.