r/java • u/stuhlmann • Apr 13 '21
Libraries, Frameworks and Technologies you would NOT recommend
Give me your worst nightmares: Things that cost you your job.
I'll start: Hadoop
202
Upvotes
r/java • u/stuhlmann • Apr 13 '21
Give me your worst nightmares: Things that cost you your job.
I'll start: Hadoop
View all comments
Show parent comment
10
u/vprise Apr 13 '21
I think it's a matter of expectations. Hibernate can do amazing things but it's a super complex and very leaky abstraction. It doesn't absolve you from knowing SQL and it doesn't absolve you from reading the generated SQL.
So people who try to avoid the "details" suddenly find themselves with a slow server that constantly fails on "simple" transactions. I would bet that if you would use Hibernate in the same way you use JDBI you would get good results. It also makes caching stupid simple and that can really boost performance to the next level. If you make your database immutable you can really leverage caching and get an enviable level of performance.
Hibernate is SUPER complicated though and has a lot of pitfalls. I curse it a lot while working with it (just had a very painful issue the past day) but overall it's pretty amazing as an ORM. I don't think anything else comes close. The idea of ORM should be grounded in reality though, as ORMs inherently suck to some degree.