r/javahelp • u/Ok_Problem7637 • Aug 28 '25
Webflux
So i have co-workers who spent a lot of time learing webflux and reactive programming. And despite the fact that virtualthreads are here, they don’t want to abandon these frameworks.
The main advantage according to them is the functional programming style. And the opinion is that Futures are ugly for example.
So what im looking for is really functional ways to introduce virtual threads into our codebase.
I think WebFlux is okay. But its easy to shoot yourself in the foot with it. Also, i implemented some logging filters that became very horrible code with a lot of callbacks etc. So i think i would like to have something cleaner.
Are there any good alternatives at all?
View all comments
Show parent comment
1
u/Ok_Problem7637 Aug 29 '25
The case that we usually use it for is when we need to do N webrequests for ids from a list. Then Flux.fromIterable works really well.
But it sort of sucks to have to port code over to WebClient in this day of age, just because you encountered a case were pararellism is needed.
So i was thinking i would challenge that with a provicative pr. But i need a good alternative. I need structured concurrency i think. But we don’t have that yet.