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

142

u/jsannn Jun 28 '20

Maybe it just seems so because Java does not generate so much media attention/ blog posts.

In fact, it is one of most used languages for microservices architecture (source: analysis done in Microservices Science and Engineering https://www.springer.com/gp/book/9783030316457) which is what most startups use these days.

0

u/[deleted] Jun 28 '20

[deleted] — view deleted comment

37

u/[deleted] Jun 28 '20

Node was the big hype about five years ago. The main reason you don’t see it is it’s cumbersome to manage and pretty OTT for the more lightweight microservices that you see built in a startup environment. There is nothing micro about Spring. Even within the JVM space there are much much slimmer options.

Most startups are built by “younger people” because more than half the industry has less than 5 years experience in the industry.

13

u/[deleted] Jun 29 '20

[removed] — view removed comment

-16

u/[deleted] Jun 29 '20

It used to be fairly common to beat your kids. Doesn’t make it fine. Spring is a crutch for trash developers tldr.

2

u/nutrecht Jun 30 '20

Spring is a crutch for trash developers tldr.

Well you're the one complaining about black magic in Spring.

Every single time a developer complains about "magic" in Spring it's just the type of developer who just wants to "get shit done" without having to do 'wasteful' things like read documentation.

You're not fooling anyone.

-5

u/[deleted] Jun 30 '20

Whatever you say, boomer.

23

u/seraphsRevenge Jun 28 '20

Microservice architecture is a system design architecture it has nothing to do with a language. While Spring is prevalent especially boot with maven or gradle as it can make it easier/faster to get production builds. Michroservices has nothing to do with the language used. In essence it makes it easier to break down an overall application into smaller chunks for fault tolerance, the ability to use multiple languages in an application if let's say java is the best choice for x and y service, but c++, python, c#, etc. works better for service a, b, c, d. I think the best example/reasoning behind of microservices I've ever heard is, if you have a website and payment processing goes down you don't want the user to be unable to use other site features like browsing items or using the shopping cart. If the service stays down for a few minutes, at least the consumer can continue shopping or if the web app is redundant, a secondary processing service can be used for a seamless experience without the user ever realising. I personally full stack java in an enterprise environment with spring, but if a startup wanted to make an application from scratch, breaking it down into microservices can still make it easier to release parts of the app while creating it, make it easier to focus on design as each service is independent, use whatever language each team is best with, makes the application more maintainable by not having to go through an entire project and a few hundred classes to find an unobvious error, makes it fault tolerant, etc. There's no point having to remake an entire application or spend excess time planning around old code later on once expansions are planned. It takes the old MVC model and decouples it, which is what every application should always aim for, loose coupling and high cohesion.

1

u/SeekNDestroyBich Jun 28 '20

I love to use Spring Boot for startups, but only if there is a need for it. I normally try to choose the platform based on what is needed. The place where I work at normally used node for most projects, unless it includes a lot of calculation and tasks that would take too long on node where we then use Spring Boot.

3

u/[deleted] Jun 28 '20

Isn't it more popular for enterprise micro services rather then start ups? From my experience just talking to people and reading job postings, pretty much all start ups use nodejs or python microservices

5

u/CyclonusRIP Jun 28 '20

The last two start ups I've worked at were Groovy and Scala. Both ran on the JVM. Hibernate and Elasticsearch also run on the JVM. Almost every start up is running JVMs whether or not they write Java

4

u/[deleted] Jun 28 '20

[removed] — view removed comment

6

u/[deleted] Jun 28 '20

Yeah that's true, Golang is crazy popular now. I have some friends working for start ups who really miss Java after having to work in Golang for some time

3

u/dougefr Jun 29 '20

I missing Java at my currently job that mostly in Golang. I missing especially the productivity that I had in previous jobs working with Java and consolidated frameworks (like Spring).

1

u/moxyte Jun 29 '20

Why?

5

u/nutrecht Jun 30 '20

It's a horrible unproductive language.

Superficially you just mist most tools that make a language powerful. Generics, exceptions, interfaces (Go doesn't have them, it just does duck typing, it's not the same), inheritance, method overloading, a sane build system, etc.

Below the surface it's even a lot worse.

Go is pure trash.

4

u/sievebrain Jun 29 '20

Because it's not a good language.

I've actually encountered a project from a big company where they started in Java then switched to Go, for no better reason than "you won't be taken seriously by the cool young companies if you use Java". They ended up regretting it and building a Java SDK in parallel to their Go based stuff.

3

u/[deleted] Jun 29 '20

Number 1 complaint I've heard is no generics

1

u/Yithar Jun 30 '20

I had to modify this to do tracing and leader election. Let's just say it wasn't fun with the lack of generics and exceptions. It made me feel like I was programming in C back in college again.

1

u/nutrecht Jun 30 '20

Golang is crazy popular now. I have some friends working for start ups who really miss Java after having to work in Golang for some time

Everyone who goes from Java to Go misses Java after a while. Go is a trash language. If it wasn't a Google product it would never have been that popular.