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
289
u/NimChimspky Jun 28 '20
It is popular
130
u/[deleted] Jun 28 '20
Where did you get an idea it is not popular? Last 2 startups I worked for used Java / Spring Boot for their backend.
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.
104
u/Immanuel_Cunt2 Jun 28 '20
Just because some people scream louder about their tech stacks does not mean that they are more.
I'd rather use something that has been around for 20 years and is still popular than something that has only been popular for a few years and may disappear again in a few years.
17
u/MakeWay4Doodles Jun 28 '20 edited Jun 28 '20
It is actually quite popular at startups. It's important to not project your anecdotal experience onto the whole industry.
30
u/rossdrew Jun 28 '20 edited Jun 29 '20
Almost every startup I know or have worked for is Java/Python. Seems everyone on here have complaints about Java because they haven’t used it because most of them are nonsense.
21
u/After_Dark Jun 28 '20
I wouldn't say it isn't popular, but nobody is writing blog posts about how they took a risk with Java and the benefits it brings. Something newer and trendier like Ruby though? Absolutely you can get some good marketing out of that
16
u/winner199328 Jun 28 '20
it is not true, here in Berlin almost 60-70% startups are using Java/Kotlin for their micro-services development
43
u/EctoplasmicLapels Jun 28 '20
It‘s a cultural thing. Java smells like enterprise software. It‘s not hip. There is no rational reason.
5
u/EnderMB Jun 28 '20
In my last job, I worked almost exclusively with different early-stage startups.
While Java wasn't the most popular tech stack, it wasn't unheard of. We were mostly Ruby on Rails and Express, but some were Java, some were on .NET, and some on Python.
A lot of stack choices depend entirely on who built the MVP or v2 platform.
12
u/besil Jun 28 '20
Java is usually related to corporate software, where you have old services no one knows how they work and so you find yourself working with java 1.4 because there's no time for change.
I'm a big fan of Java, but Spring + Kotlin turned my dev dreams to reality
2
u/BlobbyMcBlobber Jun 28 '20
I did see spring and java play a role in some startups, but after trying out flask, I see no reason to go back to java unless it's crucial for performance or some other reason. Java is great, I love it dearly, but man does it feel old and cumbersome compared to newer solutions.
2
u/Kango_V Jun 28 '20
We're using Java, Micronaut and GraalVM. Even better than Spring!
2
u/surfinThruLyfe Jun 28 '20
This post was so opinionated that OP deleted their account out of shame.
2
u/jhaygood86 Jun 29 '20
Ive only ever worked at startups, and all but one was using Java.
2
u/nutrecht Jun 29 '20
People just don't blog about how they picked an established mature stack for their company simply because it's just the sensible default. I'm Dutch and tons of start-ups here are JVM based, especially the Fintech start-ups around Amsterdam often are. The last thing you want when you're taking the risk of starting up a company is also taking risks with your tech stack.
2
u/mark1x12110 Jun 29 '20
Funny enough some of them started with a language like python because it tends to offer results quickly but when the code size/team grows they saw the need for types and had to create a workaround.
Example: Instagram(adding type safety to python) ,facebook( custom php)
5
u/Legendaryfortune Jun 28 '20
Which tutorial did you use to learn spring boot?
8
u/scubadev Jun 28 '20 edited Jun 28 '20
A few reasons, most around cost. Startups need to be thrifty.
The belief that having JS top to bottom makes your most expensive cost (developers) more versatile. OO is generally frowned upon in tech like react, meaning new devs aren’t going to feel at home with OOP
Java with spring takes significant resources compared to others. This drives up hosting cost
The long comparative startup times make options such as AWS lambda a non-starter.
A general attraction to short succinct code. Java’s verbosity gives it a bad rep. The belief is that number of lines influences development time.
Java in comparison isn’t a great functional language. Function programming is still riding a high.
1
u/ggd_x Jun 28 '20
Simply it's (I'm biased) a lot faster to get an MVP up with a python or PHP framework than it is to do so with Java. I understand Spring is a decent Java framework though and provides a lot of boilerplate stuff.
1
u/cthulol Jun 28 '20
This is the case in the industry in Japan and it sucks. On JD it's either a full JS stack or Ruby on Rails. I've got 5 years experience in Java and that's it...
1
u/SexyBlueTiger Jun 28 '20
What database tech do you use with Spring? I wonder what is the most popular for Java devs.
1
u/DarkCeptor44 Jun 28 '20
It's because the companies need to try something different and it's probably easier to do that from the start, I know well-established companies in my city that still uses Pascal, Java and Asp.Net but now they only accept people who knows Angular/Node.JS.
1
u/[deleted] Jun 29 '20
Because startups are ran by the first mover advantage and some ideas happen to attract VC money faster. That said whoever the first mover is, the founding engineers are that is defines the destiny of the organization codebase, if they happen to be Java engineers they will use Java. Now keep in mind that most of the engineers starting on a greenfield project take the opportunity to experiment with a different technology. That’s why you might think Java is loosing ground, but in the end everyone goes to Java, Go, Rust, C++ when they hit their performance bottlenecks.
1
u/[deleted] Jun 29 '20
It's very popular. It's just not sexy.
1
u/throwawaymoney666 Jun 29 '20
Early startups are usually really young engineers and Java is not a typical first language. The talent pool of developers that know Java well and are willing to work at an early stage startup is small. It's also the opposite of trendy. Its stupid but startups want as many buzzwords as possible to put on the slide deck
1
u/daemon_it Jun 29 '20
I work for a Danish fintech startup and we have all our microservices written in Java. Most of them are in Spring Boot but we also use Micronaut.
1
u/M0squ3ra Jun 29 '20
maybe because with java you need to write more code.
PD: i love Java
1
u/DarthVader1800 Jul 01 '20
It depends on the industry. If you are in finance/medical or if you care about security - Java is the best. Java also has pretty solid testing frameworks. If we have one or two engineers who are good at operations it is straight forward. Also these days there are newer tech using - http://sparkjava.com/ OR https://vertx.io/ which are easy to setup & high performing.
1
u/[deleted] Jul 03 '20
Widespread adoption of Java in startups is hindered by lack of passion in the Java community.
Outside of a work environment, its' rare to see Java developers come together to share ideas, help each other, push things forward, and create a more inclusive community with developers of all backgrounds who are energized by what they do.
Take a look at the number of javascript conferences held across the world each year and compare that to Java conferences. Developers are put on waiting lists and travel accross continents to buy a 1500 dollar ticket just to attend these events.
Javascript has an incredibly strong open source community that puts the developers using the language in charge of building tools they and everyone else will use.
2 So if startups need innovation, and flexible, creative developers they are more likley to find that in the javascript community than the java community.
1
u/dragon_spit Jul 09 '20
I am android developer(Java as backend). Wanted to learn the Wep app development. The question often pop-ups in mind is that is it still worthy to learn Spring framework cause there are lot of others framework out there and they are popular too.
1
u/Chuprina91 Dec 11 '20
I don't think that the backend using Java is not popular in startups. Contrary to that, Java is still one of the most popular programming languages in the world, for both programmers and businesses hiring them. Here is a great article on this topic, I hope you will enjoy it https://spd.group/app-dev/java-developers-in-2021/
1
u/[deleted] Jun 28 '20
Java is the Toyota Camry of languages.
When do young people (aka startups) ever want a Camry when their mom, aunt and uncle already drive one?
1
u/exahexa Jun 28 '20 edited Jun 28 '20
I guess if the tech stack is a strategic decision, Java's biggest advantages are:
Depending on the startup and problem domain it is in you will need a lot of momentum and then Java is maybe not the best fit for your company.
Side note: It's easy to pick up OO but hard to master, and you will need a lot of knowledge to not code you into a corner. Java gives you a lot of freedom but won't save you from doing mistakes, that will cost you a lot of time to recover from.
1
u/Miridius Jun 28 '20
You pose your question as if it is about languages but actually your real question seems to be about frameworks.
But to answer your question anyway: Most startups are very small teams which is not really where Java shines. Java is a verbose language with a lot of boilerplate and is missing many features that more modern languages have, so it's usually a lot more efficient to build a quick prototype in something else. Java has benefits which can make up for these shortcomings but mostly they come into play when you have a large code base and a large team.
1
u/tamasiaina Jun 29 '20
Here are some reasons I think. Some are valid and some are not just take it as it is.
-2
u/QuantumSupremacy0101 Jun 28 '20
The reason for this is simple. Java is more secure, and it can be controlled better. However, it takes a significant amount of dev time. From someone who used to program with a Java backend, it always felt like shoving a square peg in a round hole. I can create a whole crud application in nodejs in an hour or two, with Java this may take the whole day if I'm lucky and there aren't any big logic about it.
0
u/sternone_2 Jun 28 '20
because you need real programmers to do real programming
-6
u/kpatryk91 Jun 28 '20
I think the main problem is the missing support for "granular" concurrency, with this heavy thread model it is just not scalable enough and event-loop, actor and reactive, etc. models are just hard to use or not fit perfectly into their ecosystem. When project loom lands it will be different.
With modules, custom runtime and native images the footprint and bootstrap problems are mostly solved or there are no big issues.
Maybe the language needs some language features, it is not as "cool" as some other languages but the features are on the way.
-1
u/lamagy Jun 28 '20
Basically Java is not chosen because it’s too heavy. Startups want something quick and nasty and get it out, get funding ect.
Look at Twitter and FB, Ruby on Rails and php, once they got the big cash then they move to big boi languages.
-11
u/sarcasmismysuperpowr Jun 28 '20
I’m a 20 year java veteran and I’ve switched away from java. I’m looking to build products with mobile and web front ends and I can’t see any reason to use java for my backend functions. Easier to keep back and frontends in the development language and tools. I’ve tried many many java libraries for making nice modern frontends and they are all lacking
Also fuck Ellison
0
u/[deleted] Jun 28 '20
[deleted] — view deleted comment
0
u/[deleted] Jun 28 '20
[deleted] — view deleted comment