I am a senior java developer in the cloud/distributed arch/ microservice area.
I’ve touched on golang in the past, but not learnt it in any formal/extensive way.
I see it cropping up in many java/microservice positions, and I’m curious if this is at some point going to overtake java in my area.
The current benchmarks seem to suggest that if autoscaling is key to your services, golang is the way to, well, go.
I looked at the job market and it doesn’t yet seem to have taken over, but I’m curious how this is likely to play out over the next decade and if quakus for example is likely to become more competitive against golang. Interestingly, golang specific roles on average pay less than java ones in my area.
Let me know your thoughts or if you have any good articles / content on the subject.
Speaking primarily as a Go developer, what I see is companies cutting costs, and Java is battle-tested and there’s a tonne of talent out there who know the language. If Java in your area already pays more, I’d say you’ve already got your answer.
Besides which, if Go truly does eat the Java world in the next couple of years (it won’t), the language is still young enough for you to pick it up fairly quickly. Especially with the help of AI.
I used to work in Java and now work in Go writing backend services. I think I enjoy writing Go more than I did Java most of the time.
Do you have any info on the architectural reasoning behind making the switch?
My reading suggests that in an area where autoscaling is key, Go is one of the best right now due to its performance from a cold starts.
I was hoping I’d get more answers of people discussing this type of requirement to be honest - the replies so far are having me second guess my research.
I switched companies. I started go when replacing php at a previous company. I wanted to do rust at the time, but my options from the CTO were go or newer php (we were 5.x IIRC). I chose go.
My current company decided on go before I started. There’s some python ml stuff and some other things in functional languages, but we’re primarily go. I don’t know why specifically it was chosen. The old codebase was a bit of go and the original legacy in Ruby. I’m definitely glad they decided to move away from Ruby slowly (and compleltely in the new codebase).
Im biased but Java is a better language and learning go is good to broaden your horizon but will you Need it? Probably not much, mostly when working with helm i assume…
Ofc Theres nothing wrong with learning it though
In my humble opinion, being monocultural as a developer is a path to obsolescence. Be T-shaped: know your specialty really well, but also a bunch of stuff more superficially.
If you have a little hands on experience with Go on top of your Java expertise, you are imo more valuable to your employer. They may even be mid transition from Java to Go, where you would be very useful indeed.
Besides, it’s just healthy to keep learning new things.
All learning is good.
Your question is way to subjective. Ststat eyour intent. More people could help
I mean it’s a language specifically designed to be easy and quick to learn. Even if you don’t work with primarily, you’ll find it useful for stuff like cli programs, advanced scripts(instead of python), small services, etc.
You’d learn more if you learn a bit of Clojure or Erlang. Go is easy, but it is mostly competing with Python for the web.
Do you see downsides to learning it?
If you can, do it. It’s common enough to be [potentially] useful. If you don’t have a concrete need, then it’s not necessary, though.
It’s hard to predict the future, but I can point to a couple of indexes.
TIOBE measures language popularity according to a variety of factors. It has Java on a steady downward trend over the last couple of decades, but shows it as still very relevant. TIOBE does not show comparable growth for Golang. I don’t see much growth in the top 10 for languages that are especially suited to autoscaling. C# looks to be steady as a language in a similar niche as Java.
OTOH another survey from devjobsscanner that looks purely at job postings shows Java openings as very steady over the last couple of years. It also shows Java as more popular than Golang.
So I don’t know exactly what conclusion to draw from that. But learning a new language can be a helpful exercise regardless to broaden your perspective, and to keep your skills sharp.
Personally for the purpose of producing resource-efficient binaries for scaling I prefer Rust. It’s design incorporates some correct-by-construction strategies that promote high-quality code. And it’s well-suited for compiling to WASM so you can do stuff like deploy small services to Cloudflare workers for wild scaling. But I guess Rust isn’t making a big showing in the popularity charts. And Golang is popular for its lower learning curve.
I have been mostly writing C++ for more than 20 years, but TOBIE seems useless (again…) Visual Basic and Pascal have better ratings than Kotlin or Rust? I don’t believe it.
TIOBE merely measures the number of questions asked about a particular language online, which is obviously not exactly realistic metric but people for some reason love to spout it
That makes sense. I didn’t find many surveys available, so I referenced the ones I could find.
There is not much to learn, so just do it? It’s not a relevant investment that would require much thought.
Are you only asking about the worthiness as a job skill or also for personal satisfaction?
IMO it doesn’t matter, learning go from Java should not be what excludes you from an offer. Of course if the employer has a choice between two otherwise even candidates then maybe it’d help.
I think the problem is working with both in a production environment is what is going to set you apart.
I’d say learn a language that’s really different like a functional or a logic language.
Otoh I’ve not been interviewing lately so maybe my take is totally off base
IMO it’s not as good a language as Rust, so I wouldn’t learn it for the purposes of making something. However it’s very easy to learn (at least to a productive level), so you may as well if you want to.
Just work through go by example and see what you think.
By far the best thing about Go is the tooling. Language itself is eh.
Yeah the language is not the most sexy but it does the job. The tooling is where the real benefits come to life
I think java has enough momentum that it will join in the perpetual pantheon of languages with FORTRAN and C - however with that said, learning Go changed how I write Java for the better, I was able to do this within my java job after convincing the team that a small but neccisarry but not critical side project could be done in Go to test it out - I had a blast learning and writing it, even though ultimately the dynamics of my company kept us in Java
RE autoscaling: effective distributed systems design isn’t really language-dependent. Java apps can scale just as well as ones written in Go. That said, I can see there being a case for Java apps not making it as easy to build that way. There’s definitely a lot of mainframe/monolith-oriented patterns in both the standard library and in enterprise Java culture.
As for the job market and career investment, I’d say this:
- Keep investing more deeply in what you’re good at. That’s your foundation and what sets you apart.
- Avoid chasing the “next big thing” based on speculation and trends alone.
- The next step in your career hinges more on your ability to think and design at higher levels than it does on lateral moves to another programming language.
- Explore languages and technology that you think are interesting, relevant, or can provide value or elevate what you’re already doing. The main benefit of doing this is to engage your brain differently and encourage change, improvement, and growth. This will indirectly improve your work and help your career.
I’ve written a lot of Java in my career and studied it in college, and I’ve written one app professionally and several hobby projects and utilities in Go. There’s a lot to like about it, regardless of its marketability on a resume.
I had to containerize an older java app. It sucked, java would take all the memory you gave it regardless, so it was hard to determine memory requirements/limits. It had pretty slow start although this wasn’t an issue for us, logging formatting was a pain. All this was overcome (not by upgrading), it was just a pain.
I suspect this isn’t true of modern java though - I’d suspect with the hype kubernetes went through a few years ago that it’s just fine now a days.
Yeah I wouldn’t say a java service taking multiple seconds to boot up being scalable the same way that any other compiled language will be.
There are also the huge “legacy” frameworks that slow down java, the auto magic and more non features that make maintaining any real world java application a pain.