OpenLiberty / open-liberty

Open Liberty is a highly composable, fast to start, dynamic application server runtime environment
https://openliberty.io
Eclipse Public License 2.0
1.16k stars 592 forks source link

Add option to use Virtual Thread executor instead of the default one #21034

Open Thihup opened 2 years ago

Thihup commented 2 years ago

Describe the use case that you want to enable: Use Virtual Threads executor instead of the default one.

Describe why this is important to you: Enable higher scalability

vijaysun-omr commented 2 years ago

Thanks @Thihup we do plan to explore the use of Project Loom (virtual threads) in Liberty in the future. Given that this work lies ahead of us, we may benefit from knowing the context for your interest in this, e.g. understanding if you have a specific use case and if so, taking that into account in our exploration.

bmarwell commented 2 years ago

Hi @vijaysun-omr! I'd be interested in this, too. My apps are using a lot of background threads to compute things, eg reading in a large custom JSON DSL, and then applying transformations to lots of objects in memory (pre-loaded from a database). Some operations will take minutes, easily. Getting them done in seconds would get us closer to other DB locking mechanisms.

Haven't tried the actual effect yet, but can try to get some numbers.

bmarwell commented 2 years ago

https://github.com/OpenLiberty/open-liberty/pull/22252

PR by @NottyCode