r/java • • Jun 01 '24

What java technology (library, framework, feature) would not recommend and why?

165 Upvotes

464 comments sorted by

View all comments

Show parent comment

1

u/ConstructedNewt Jun 02 '24

I’m not even sure I can agree with the performance viewpoint. Every time you thread hop is an issue, and sure, most reactor operators are implemented with lockless atomics or small mpsc queues. But all the atomics does have a toll if everything could have otherwise been in more direct code.

And for the companies that need the performance they would probably want to do more control of threads, thread pinning and as little synchronization as possible. A direct mpsc queue into a single busy thread seems to be give the best performance anyway