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

177

u/Ragnar1989 Jun 01 '24

RxJava - awful to read/debug/maintain.

30

u/DelayLucky Jun 01 '24 edited Jun 01 '24

We recently had an outage that took the team a week's panic debugging to finally narrow down to a race condition bug in Rx.

Bugs happen to any software, especially in complex softwares like Rx (we'd have the same pain if it were JDK or JVM having a similar suble bug).

But there are justified complexities that solve a real and large problem; and there are avoidable ones. Rx is more like a subjective choice. We wouldn't have had as much of a pain had we used a simpler technique.

We all know async + concurrent + reactive is hard to read, hard to implement correctly, hard to test thoroughly, and when a bug happens in production it's harder to reproduce and debug. So when you wrap it all under an open source library rug, the hardship translates to generally lower reliability.

→ More replies (1)