New Java framework allows developers to easily develop microservices in Java
Empty golden jewelry gift box image via Shutterstock
Surprise, surprise! There’s a new Java framework which promises to allow developers to easily develop microservices in Java.
Java-micro is a framework which allows developers to easily develop microservices in Java. The team at Sixt (that created the framework) uses Go Micro as the framework for their Go services. Therefore, a primary concern for this framework is to be compatible with Micro. Although they diverge a bit in capabilities and methodologies, they are compatible.
What can Java-micro do?
The list of features includes the following:
- Simply build service as docker container or fat jar.
- Configuration from environment, command-line and external configuration services.
- Standardized json logging.
- Standardized metrics reporting
- Simple interface for calling endpoints on other services and handling errors from them.
- Client-side load-balancer
- Simple interface for a service to support health checks.
- Database migrations built-in.
- Simplified event-handling using kafka.
- Pluggable service registry to register and discover service instances.
- Compatible with Go Micro to allow choice of implementation language.
- Guice dependency injection for ease of implementation and testing scenarios.
- Components to create service integration testing scenarios.
This framework is meant to keep compatibility so that service developers can easily choose between developing a service in Java or Go. However, other languages can also be supported by using the Go Micro sidecar.
What’s next for Java-micro?
Over the next few weeks and months, developers should expect a series of screencasts to highlight various aspects of Java-micro and how they can use it to solve various engineering problems in a modern microservices environment.
You can find all the details about this new lightweight Java framework here.