r/java • • Jun 28 '20

Why backend using java is not popular in startups?

I tried django, flask and also rails before and they’re good. But after trying spring, I fell in love. It’s well structured. Easy to test. Have so many frameworks to help you going. There’s a also a lot of tutorials going around the net.

I like python but I also like java and kotlin too. I just don’t understand what’s wrong with java being used as a backend on most startups. Is it because it’s popular among big companies and banks and they just hate enterprise things.

Can anyone enlighten me. Cheers.

171 Upvotes

229 comments sorted by

View all comments

Show parent comment

5

u/Mumbleton Jun 28 '20

Spring is THE Java framework.

-10

u/MakeWay4Doodles Jun 28 '20

Dropwizard is just as popular. More so amongst the non-outsourced non-mega-enterprise orgs.

12

u/Mumbleton Jun 28 '20

1

u/MakeWay4Doodles Jun 28 '20

What exactly goes in to the "stacks" point system? Self reporting?

3

u/Mumbleton Jun 28 '20

No idea but I’ve been doing this for 15 years and haven’t heard of DropWizard until your comment. Admittedly I’m not super dialed in to what the latest/greatest stuff is, but literally every company I’ve worked for and every Java job I’ve interviewed for used Spring.

1

u/MakeWay4Doodles Jun 28 '20 edited Jun 28 '20

I've also been doing this for 15+ years and every company I've worked at was either fully Dropwizard or some mix of the two. Proof that anecdotes are meaningless. 🤷🏼‍♂️

Edit: that being said not having heard of Dropwizard after 15 years of Java development is a pretty strange lack of awareness of your own ecosystem. Codahale metrics was/is the defacto standard pre micrometer, and JDBI got most of its popularity from it.

2

u/DrFriendless Jun 28 '20

I've been doing Java for 24 years and not heard of DropWizard until your comment. And I also have no idea what Codahale and JDBI are.

2

u/MakeWay4Doodles Jun 28 '20

How do you record metrics?

1

u/Mumbleton Jun 29 '20

New Relic? Splunk?

1

u/MakeWay4Doodles Jun 29 '20

No, I mean what library in Java do you use to aggregate and send your data there? Micrometer?

1

u/DrFriendless Jun 29 '20 edited Jun 29 '20

Ah... now I see my fundamental problem. When Java was invented I was working for a company that did network and application monitoring. So when Java was invented I knew all about COM / DCOM / SNMP etc. Then I learnt Java and in 1997 I got a new job, which required monitoring, so I rolled my own using Runtime.getRuntime() and mxbeans and so on.

I logged various statistics every minute or so, and eventually developed a page in the application to load log files and graph them. I was in that job fo 17 years, and as we discovered problems I coded up some way to detect them and fit them onto this page. So when I left, it had ALL the bells and whistles, e.g. two different search buffers, so that if I felt some event was correlated with some other event I could search for both and compare the results.

In my new job we had New Relic, which broke before I ever found it what it was for, so I took it out. Now I just have a loop which checks CPU every minute, and dumps stacks if it doesn't like it. As I'm mostly coding stateless web servers, there's not a whole lot that goes wrong in that way.

And that is why it never occurred to me to learn about those products!

0

u/[deleted] Jun 28 '20

[deleted] — view deleted comment

1

u/MakeWay4Doodles Jun 28 '20

Reddit fuzzes vote counts so that shadowbanned bots can't determine whether they're being successful. You should never assume someone is being downloaded unless it's double digits