How Are You Using Virtual Threads for Networking in Java?

0
1
Asked By CleverMuffin42 On

I've been hearing that virtual threads are great for networking in Java, but I'm worried about their compatibility, especially since many libraries like Netty use JNI, which can cause issues with blocking operations. Can anyone share how they're successfully using virtual threads in networking scenarios, particularly when libraries they're working with depend on Netty?

1 Answer

Answered By CuriousCoder87 On

It seems like you're equating networking solely with Netty. Have you considered using other networking libraries? There are plenty that might suit your needs without the JNI complications.

OriginalPoster23 -

But my main use cases involve libraries that rely on Netty, like the HBase client, so I can't easily switch.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.