DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
  1. DZone
  2. Testing, Deployment, and Maintenance
  3. Deployment
  4. Developing and Debugging Microservices With Java

Developing and Debugging Microservices With Java

We explore how the Microclimate framework can make it easier to build and debug microservices in the Java language. Read on to get started!

Niklas Heidloff user avatar by
Niklas Heidloff
CORE ·
Feb. 27, 19 · Tutorial
Like (12)
Save
Tweet
Share
11.80K Views

Join the DZone community and get the full member experience.

Join For Free

kubernetes has become the de facto standard for deploying and managing containerized applications in public, private, and hybrid cloud environments. while kubernetes is really powerful, it's not the easiest way for developers to deploy applications.

to make developers more productive, several technologies have emerged to make creations and deployments of applications on kubernetes easier, for example, cloud foundry, which can be run on kubernetes , and knative .

another technology is microclimate . here is the description from the microclimate home page:

microclimate is an end-to-end development environment that lets you rapidly create, edit, and deploy applications. applications are run in containers from day one and can be delivered into production on kubernetes through an automated devops pipeline using jenkins.

in the easiest case, developers can write microservices locally and push code via git, which triggers pipelines that generate the images and run the containers. this works when running locally, it is supported for ibm cloud private and with scripts and helm charts microservices can be also deployed to other kubernetes platforms like ibm cloud .

let's take a closer look at how to use microclimate locally . via the web application, developers can create new projects in java, node.js, python, swift, and go.

for java projects, you can choose between microprofile/java ee, spring, and lagom. in my example , i've used microprofile .

the following screenshot shows the overview page of the project. i've put the code on github . whenever the code changes, pipelines can be triggered automatically.

for smaller changes, microclimate comes with an integrated text editor in the web application.

in addition to the build logs and application logs, application metrics are displayed, too (garbage collection time, http throughput, heap, http incoming requests, cpu):

in order to run microclimate, you need docker, since everything is containerized: microclimate itself, as well as the containers running your microservices. i like this concept a lot since it allows working in the same containers locally, which are later deployed on kubernetes. this minimizes the risk to run into issues because of different environments.

for eclipse and visual studio code, there are plugins to connect to microclimate. this allows running and debugging your application code directly from the development environments. this is very similar to what i blogged about ibm cloud functions . the following screenshot shows the debugger in visual studio code accessing the running code in a container.

you can also do changes from the ides and run the changed code without having to restart containers or application servers manually!

check out the microclimate documentation to learn more.

Kubernetes microservice application Java (programming language) Docker (software) IBM Cloud

Published at DZone with permission of Niklas Heidloff, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Beginners’ Guide to Run a Linux Server Securely
  • Continuous Development: Building the Thing Right, to Build the Right Thing
  • 7 Awesome Libraries for Java Unit and Integration Testing
  • The Future of Cloud Engineering Evolves

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: