{{announcement.body}}
{{announcement.title}}

Build Microservices With Helidon

DZone 's Guide to

Build Microservices With Helidon

Helidon is the new addition in the microservice development race for Java developers. It is an open-source project developed by Oracle.

· Microservices Zone ·
Free Resource
Helidon logo


Microservice is the new architectural practice in Cloud-native application development. Development tools and frameworks are released more frequently than before to enable the whole eco-system continues to move quickly.

Helidon

Helidon is the new addition in the microservice development race for Java developers. It is an open-source project developed by Oracle. When I came across this framework, I wanted to give a try for my next microservice development. The moment I started looking into their documentation, I couldn't stop reading.

You may also like: Microservices Architecture — Learn, Build, and Deploy Applications

I wanted to give a shot to get my initial feelings about the framework. My first feeling was fantastic! This is not simply because of offering nice tooling and the latest technology. But this is so easy to get started and get things done in zero time. I mean ZERO time.

Create a Project Skeleton

Execute the below archetype to get the skeleton code. Please make note that before executing the command you should have Java and Maven in your classpath.

mvn archetype:generate -DinteractiveMode=false 
  \ -DarchetypeGroupId=io.helidon.archetypes 
  \ -DarchetypeArtifactId=helidon-quickstart-mp 
  \ -DarchetypeVersion=1.3.1 \ -DgroupId=com.hustlebar 
  \ -DartifactId=dailyapi \ -Dpackage=com.hustlebar.dailyapi


Run Project

Compile and run the project using the following command.

Compile: > mvn package Run application: > java -jar target\dailyapi.jar


Access Application

Access the application using http://localhost:8080/greet.

There are few other default endpoints are created in our skeleton code, but the most important point here is, you will get a lot more capability out of the box due to the Microprofile.

All the above endpoints are supported out of the box without even writing a single line of code by us.

The whole exercise is completed within five minutes of my time. The first experience with the Helidon framework is so awesome. I will keep exploring the framework further and share my thoughts in the coming weeks!

Happy Coding!


Topics:
microservices ,microservices framework ,helidon ,project skeleton ,java microservices

Published at DZone with permission of Thamizh Arasu , DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}