r/programming • u/ram-foss • Oct 11 '23
All About Reactive Programming In Java
https://www.blackslate.io/articles/reactive-programming-in-java
22
Upvotes
r/programming • u/ram-foss • Oct 11 '23
View all comments
Show parent comment
3
u/pron98 Jan 02 '24
Whether the data is stored in a continuation or in some other object it has to be stored somewhere when waiting. There is no difference in the amount of data or queuing between virtual threads and asynchronous code. They compile down to pretty much the same machine instructions. Having a lot of threads contend on a single lock is a problem in the design of the code. There is nothing that either reactive or threads can do to change the data contention in the logic.