Our team has services in Python, Go, and Dart, but no Java experience. Java's ecosystem looks appealing, though Spring seems to involve a lot of framework-specific annotations and conventions. Is the learning curve worth it for a new service?
Is Java and Spring Boot a good choice for microservices if nobody on the team knows Java?
Answers
Java is viable, but what would it give this particular service that your existing stack doesn't? A fourth language means another set of build tools, dependencies, troubleshooting skills, and things the team needs to maintain.
If Go or Python already fits the job, I'd stick with one of them. A specific library or capability could justify Java, but a large ecosystem alone wouldn't be enough for me.
Reply to this answer
You're not imagining the Spring learning curve. Java and Spring are two separate things to learn, and Spring is a large framework. Annotations and dependency injection can make it less obvious where an object comes from or why a piece of behavior runs.
Once the team understands those conventions, Spring Boot offers a lot for building APIs with relatively little application code. But getting a simple endpoint running isn't the same as understanding how to debug and maintain the service.
Reply to this answer
You can try Java without committing to Spring. Micronaut and Quarkus are other frameworks worth looking at, and a small service may not need a large framework at all. For example, Java's HTTP classes and JDBC can cover some straightforward integration work.
I'd compare a small representative service in your current stack and a Java option before picking one. Look at how easy both are for the team to build and troubleshoot, not just how quickly the first endpoint appears.
Reply to this answer
Don't forget the stuff around the application. A new service still needs configuration, logging, metrics, tracing, deployment, and monitoring. Check how a Java service would fit the tooling and practices you already use before making the language decision.
Reply to this answer
Add your answer
Answers are reviewed before publication.
soup.ladle.dispatch:
That doesn't mean migrating existing services. The decision can just be whether a new service has a strong enough reason to use Java.