I'm one of those rare people who like both Java and Go - but I like them for different reasons, and people use them for different reasons. If memory consumption is a bottleneck for you, you'll choose Go. If your team is fluent in Java and you rely on Dependency Injection and stuff, you'll likely choose Java. They both have advantages and disadvantages that will make you choose one over the other, and choosing a language for a microservice is no exception from that (even though Go's startup times are a good fit for microservices) :) Answer from dominik-braun on reddit.com
🌐
Apriorit
apriorit.com › home › blog › software development blog › golang, c#, or java: which language is best for building microservices?
Golang, C#, or Java: Which Language Is Best for Building Microservices? | Apriorit
December 26, 2019 - After considering these criteria, we chose C#, Java, and Golang as the best candidates. To determine which one was best suited to the project, we used each language to build microservices and tested our results to see the difference.
🌐
Reddit
reddit.com › r/golang › can java microservices be as fast as go?
r/golang on Reddit: Can Java microservices be as fast as Go?
November 10, 2020 -

https://medium.com/helidon/can-java-microservices-be-as-fast-as-go-5ceb9a45d673

If I'm gonna leave my opinion on the article, take it with a pinch of salt because I dont know sometimes what I'm talking about, just a friendly opinion.

To me at least, it seems like even though sometimes Java outperformed in response times for a small 5-10% margin, it's still not worth the cost of Java's x2-10 times more memory consumption which costs very much in the hosting market. Like, most of the tests have as big margins as Go=100mb Java=1.5GB memory, that's a huge difference. The cost is too big for the advantage, which is not even certain, in contrast with RAM cost which is very expensive.

Other than that, it just seems to me that Golang's optimization is still maturing and has a long way to go. But good job at Java native images for succeeding outperforming it. It was honestly surprising to me. What's your thoughts?

Discussions

Can Java microservices be as fast as Go?
I'm one of those rare people who like both Java and Go - but I like them for different reasons, and people use them for different reasons. If memory consumption is a bottleneck for you, you'll choose Go. If your team is fluent in Java and you rely on Dependency Injection and stuff, you'll likely choose Java. They both have advantages and disadvantages that will make you choose one over the other, and choosing a language for a microservice is no exception from that (even though Go's startup times are a good fit for microservices) :) More on reddit.com
🌐 r/golang
11
9
November 10, 2020
Java vs Golang - Choosing a language for Freshdesk Microservices

Some of the general points are mostly correct, but I am going to disagree with some and give some tips as someone who has done a lot in both langs... (pardon the long post, was bored this morning):

  • Golang concurrency is not that much easier. Many developers will have an easier time working with futures, promises (i.e. CompletableFuture), thread pools, and concurrent collections than they will with select+channels. Just make sure they understand blocking/non-blocking selects and channel. Go is not just magically "less buggy", it takes discipline wrt state sharing/movement

  • I personally find swagger/openapi specs to not be very good for code generation. Good enough for json model gen I guess, but do the HTTP req/resp yourself. Or if it's not a ridiculously sized or volatile API, just work with it directly.

  • Don't get hung up on annotations vs other ways to specify routes, the difference is negligible. Consistency and difficulty are what matter.

  • It is pretty company specific that Java is considered to have a clear devops edge because of some closed-source commercial monitoring system. Also, I don't consider dockerizing both to be that straightforward wrt runtime management of a VM and dependencies vs static compilation. When considering devops, ease of upgrade and package management should also be a concern (there are pros/cons for both langs here)

  • Normal Go using shops shouldn't be leveraging a ton of code generation to work around lack of generics. It will get ugly fast. Just accept the language limits and work within them, especially for microservices.

  • Don't get hung up on Java libraries. That hibernate is even listed to me screams that this comparison is not on modern Java and approaches. Again, microservices, nothing complicated. Just make the scaffolding and let your devs run w/ it.

  • The lambda implementation in Java is not "hacky at best" and again, this reeks of a level of misunderstanding that makes me think someone else should put together a comparison doc for your company's sake. Also, whether defining anon functions and their types feels natural in Go compared to Java is subjective at best (I think Go is way wordier and explicit...whether that is good/bad is up to you)

  • Dependency management in Go has not improved that much in my opinion, it just became more fragmented.

  • Go does not do code analysis much better. That the lang has built in checks for unused variables is nothing compared to something that tells you that you are going to break at runtime w/ a nullable var (e.g. by using the checker framework in Java). These statements in the post, like many others, seem to be based on what comes with the package and not the ecosystem.

  • Compiling Java code is not slow. I'm gonna have to see some numbers, especially in a reasonably sized application. Even start time is not really slow, especially for daemons.

Meh, I'll stop there...I think the author could use examples of simple Java microservice code and war stories of bad developer use of Go concurrency to even it out a bit. But I don't disagree with the general post or it's overall conclusion. Also, author is doing a disservice excluding Kotlin.

More on reddit.com
🌐 r/golang
15
24
April 5, 2018
For microservices, is Rust instead of Go a bad choice?
It depends a lot on what you're doing. When we experimented with writing microservices in Rust, we struggled with various cloud libraries not really being in a production state, whereas they're often very mature in Go. I'm not a huge fan of Go in general, but since it shares some of the advantages of rust (e.g. tiny docker images, speed to some extent) but has much better library support and is easier in some sense, it often wins out. If speed, correctness, memory usage (we saw quite major differences here, with rust using a lot less memory), interfacing with rust crates etc are extremely important, rust might win out. For a simple CRUD application that interfaces with cloud services, Go is probably better. More on reddit.com
🌐 r/rust
41
56
August 18, 2023
Quarkus Native vs Go for microservices?
On July 1st, a change to Reddit's API pricing will come into effect. Several developers of commercial third-party apps have announced that this change will compel them to shut down their apps. At least one accessibility-focused non-commercial third party app will continue to be available free of charge. If you want to express your strong disagreement with the API pricing change or with Reddit's response to the backlash, you may want to consider the following options: Limiting your involvement with Reddit, or Temporarily refraining from using Reddit Cancelling your subscription of Reddit Premium as a way to voice your protest. I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns. More on reddit.com
🌐 r/java
95
83
August 10, 2023
People also ask

When should I outsource eCommerce app development?
Outsourcing eCommerce development services can be an excellent option for businesses that lack the resources or expertise to build their in-house development team. Here are some situations when hiring an eCommerce app development company can also be a good choice:
  • Time constraints: Developing an eCommerce app from scratch can take a lot of time and effort, which may not be feasible for businesses with tight deadlines.
  • Cost constraints: Building an in-house team can be costly, especially if you need to hire eCommerce developers.
  • Need for flexibility: Outsourcing usually is more flexible as you can hire developers for the project's duration only.
  • Access to the latest technologies: Outsourcing allows you to access the latest technologies, tools, and techniques that may not be available to you in-house.
Ultimately, the decision to outsource eCommerce app development depends on your business needs, budget, and timeline.
🌐
miquido.com
miquido.com › home › blog › ​golang vs java –...
Golang vs Java Comparison: Which One to Choose? - Miquido Blog
How long does it take to build eCommerce software?
Again, the timeline of the eCommerce software development process depends on the scale and complexity of our client's vision. Miquido is a fully agile company, meaning that we always adjust our processes to your needs. If you develop eCommerce software with our team from scratch, it is safe to assume a similar methodology and time frames:
  • Workshops (1 day - 5 weeks): Depending on the clarity of your idea, you can choose from 4 types of Miquido workshops: product discovery or MVP definition workshops (1-2 days), design sprint (5 days) and complex product bootcamp to build the eCommerce app from scratch (4-5 weeks).
  • UX/UI Design (4 - 6 weeks): Usually, the design phase at Miquido covers the stages such as defining the product scope, preparing the design system, design validation and smooth handoff to the production team.
  • Development (3 - 5 months): At Miquido, we aim to deliver your eCommerce software's minimum viable product (MVP) within 3-5 months.
Of course, any unplanned changes, a non-standard size of the application, or team outsourcing may cause a delay in your scheduled app development time. If you want to learn more about how long it takes to develop an app, please read our article.
🌐
miquido.com
miquido.com › home › blog › ​golang vs java –...
Golang vs Java Comparison: Which One to Choose? - Miquido Blog
What AI solutions can I implement into my eCommerce software?
AI and enterprise eCommerce development solutions should prioritise improving the customer experience, optimising sales, and streamlining user journeys. The worth to mention examples of AI solutions for eCommerce are:
  • Personalised recommendation engines: AI algorithms, such as Amazon Personalize or Dynamic Yield, analyse customer behaviour and purchase history to improve customer satisfaction and sales
  • Chatbots: AI-powered chatbots provide instant customer support, answer frequently asked questions, and assist with product search and checkout
  • Fraud detection: AI algorithms can identify and prevent fraudulent transactions, help reduce chargebacks, and protect the business from financial losses
  • Predictive analytics: AI tools like IBM Watson Analytics or DataRobot can analyse customer behaviour and historical data to predict future demand and optimise inventory management or pricing strategies.
🌐
miquido.com
miquido.com › home › blog › ​golang vs java –...
Golang vs Java Comparison: Which One to Choose? - Miquido Blog
🌐
fram^
wearefram.com › home › development team › go vs java for microservices: a developer’s in-depth performance comparison
Golang vs Java: A 2026 Guide for Microservices Teams - Fram
March 23, 2026 - At Fram, we use Golang for building lightweight, high-performance microservices due to its speed and scalability, especially for cloud-based applications (learn all about the pros and cons of cloud computing). Limited Libraries: While Go’s ecosystem is growing, it still lacks the vast library resources available in Java, which can require more time for building complex microservices.
🌐
Hacker News
news.ycombinator.com › item
I led our teams to switch from Java to Go because of the productivity of develop... | Hacker News
February 3, 2017 - So in my situation, the JVM is heavier by every single measure listed, and for each by a considerable margin · This is the easy trap to fall into though. What if you aggressively rewrote the Java apps from crappy legacy frameworks to well developed Java apps
🌐
Miquido
miquido.com › home › blog › ​golang vs java –...
Golang vs Java Comparison: Which One to Choose? - Miquido Blog
November 22, 2024 - These characteristics make Golang well-suited for microservices architectures and backend systems that demand high throughput and responsiveness. On the other hand, Java's performance shines in areas where stability, scalability, and extensive ...
🌐
Getdefault
getdefault.in › post › golang-vs-java-for-microservices
Golang Vs. Java for Microservices | Which is the Best Option?
February 3, 2023 - However, Golang is catching up quickly and now has a plethora of frameworks and libraries that can help developers create robust microservices rapidly and efficiently. Both languages offer excellent performance and scalability, so the choice ...
Find elsewhere
🌐
DZone
dzone.com › testing, deployment, and maintenance › deployment › java vs. go microservices - load testing (rematch)
Java vs. Go Microservices - Load Testing (Rematch)
March 12, 2020 - In this article, we look at benchmarks for two versions of a basic application with Go and Java to see which has the smaller CPU/memory footprint.
🌐
Technoidentity
technoidentity.com › home › featured › opinion: go vs java microservices
Opinion: Go vs Java Microservices - Technoidentity
July 19, 2022 - No need for sophisticated reactive libraries at different levels of abstraction and different layers of software. Go was intended to replace Java and C++ in distributed/cloud systems. And it has excellent low latency, high performance and robust networking and infrastructure libraries. Real advantage of Go over java would be evident only after one starts using it. Writing rest based microservices is similar to writing express apps than spring based Java.
🌐
Matellio -
matellio.com › home › technology › golang vs java: choosing the right language
Golang vs Java: Choosing the Right Language - Matellio
October 26, 2023 - Java: Java compiles to the bytecode running on the JVM, requiring the JVM to execute. This can lead to challenging deployment situations. ... Go (Golang): Go’s simplicity and built-in support for concurrency (goroutines and channels) make it an excellent choice for microservices that have to handle multiple concurrent requests.
🌐
XenonStack
xenonstack.com › insights › microservices-java-go
Microservices for Java and Golang - A Complete Solution
September 10, 2024 - The reason is its inheritance with C-family programming languages as components written in golang are easier to combine with components coded in other languages that reside in the same family class. It is much more efficient than C, C++. Frameworks used in it for Microservice Architecture.
🌐
Turing
turing.com › blog › golang-vs-java-which-language-is-best
Golang vs. Java: What Should You Pick?
February 21, 2025 - But still, they have significant differences. Go is better suited for microservices whereas Java is better for large systems and projects with good timelines. Java is older, object-oriented, and has a larger library and community.
🌐
VLink Inc.
vlinkinfo.com › blog › java-vs-golang
Java vs. Golang | Making the Right Choice for Web Development | Vlink
February 28, 2024 - If you are planning to build a lightweight and high-performance system, Go is the right choice. With its simplicity and concurrency support, it is suitable for cloud-native and microservices architectures.
🌐
Igmguru
igmguru.com › blog › golang-vs-java
Golang vs Java: What Should You Choose ? (Updated 2026)
2 weeks ago - Java: Exceptions are used for error ... certain situations. Golang: Its built-in concurrency support and simplicity render it a great pick for microservices with the need to handle various concurrent requests....
🌐
Orient Software
orientsoftware.com › blog › golang-vs-java
Golang Vs. Java: Choose the Right Programming Language for Web Development
March 12, 2024 - On the other hand, Java, while widely used for building large-scale enterprise applications, is also quite suitable for creating microservices with frameworks like Spring Boot. In terms of efficiency in microservices, Golang’s compiled nature and static memory management can indeed make it more efficient for certain microservices architectures, but the choice between Go and Java often relies on the specific requirements of the project, including factors like team expertise, existing codebase, and specific performance requirements.
🌐
Medium
hashila-abeywardana1.medium.com › go-vs-java-for-microservices-pros-and-cons-f1c412cebd6b
Go vs. Java for Microservices: Pros and Cons | by Hashila Daminda Abeywardhana | Medium
April 3, 2025 - Faster execution time compared to Java, making it ideal for low-latency applications. ... Go has a small runtime and consumes less memory, making it efficient for cloud-native microservices.
🌐
Medium
medium.com › helidon › can-java-microservices-be-as-fast-as-go-5ceb9a45d673
Can Java microservices be as fast as Go? | by Mark Nelson | Helidon | Medium
November 5, 2020 - The response time of the Java variants seemed to be much more consistent but with more peaks — we theorize this means that Go was doing more, smaller garbage collections · In round three we decided to run the applications in a Kubernetes cluster — a more natural runtime environment for microservices you might say.
🌐
Shakuro
shakuro.com › blog › golang-vs-java
Golang vs Java: Developer’s Guide to Choosing the Language | Shakuro
October 21, 2024 - Cloud Computing: Widely used in cloud services and microservices architectures due to its efficiency and scalability. DevOps Tools: Many DevOps tools, such as Docker and Kubernetes, are built using Go for its speed and simplicity. Network Servers: Ideal for building high-performance network servers and message brokers. Data Processing: Efficient for processing large datasets in real-time due to its concurrency capabilities. ... Java is a high-level, object-oriented programming language that was designed to have as few implementation dependencies as possible.
🌐
Freshworks
freshworks.com › company › java-vs-golang-blog
Java vs Golang - Choosing a language for Freshdesk Microservices
November 16, 2022 - On the other hand, Go libraries employ explicit code for specifying routing. Hence, Go will require more code in setting up the endpoints. However, it can be argued that HTTP routing in a single place is much easier for a new developer to understand ...
🌐
MindMajix
mindmajix.com › blog › golang › golang vs java
Golang vs Java | Which one is Better? in 2025 | MindMajix
Error Handling: Java uses exceptions for error handling. On the other hand, Golang doesn’t use exceptions but uses errors only. Applications: Golang is the best language for microservices and web services.