Taxonomy Icon

Containers

Deploy MicroProfile-based Java microservices on Kubernetes

Get the code

Summary

Container technologies and DevOps practices for building and continuously delivering microservices are essential to succeed in today’s fast-paced development environment. This developer journey shows you how easy it is to create and deploy Java 8-based microservices using MicroProfile and Kubernetes with the skills and experience you already possess.

Description

As a Java developer, you need to take advantage of the power of the Java language while incorporating the latest tools and development methodology. This developer journey shows you how to deploy a Java-based microservices application using MicroProfile and deploy to a Kubernetes cluster.

MicroProfile was created to help Java EE developers standardize on a baseline platform definition that optimizes enterprise Java for a microservices architecture, delivering application portability across multiple MicroProfile runtimes. Kubernetes is a system that enables automation of deployment, scaling, and management of containerized applications. New to Kubernetes? Check out our video for a quick intro.

This developer pattern shows you how to deploy a Java-based microservices application using MicroProfile and deploy to a Kubernetes cluster. Specifically, we walk you through a scenario with a sample web application that manages a conference and is based on multiple discrete microservices. The front end is written in Angular, while underlying microservices are written in Java. All apps and services run on Open Liberty in Docker containers managed by a Kubernetes cluster.

Flow

flow

  1. The user of the Conference microservices application accesses the web application to see the speaker list.
  2. The web application microservice connects with the speaker microservice to retrieve the speaker list.
  3. The user selects a speaker, clicking on the name of the speaker to see the details.
  4. The web application microservice connects with the session microservice to retrieve session details for the speaker.
  5. The web application also connects with the schedule microservice to retrieve the schedule for the speaker.
  6. The user can also retrieve the vote section to see the ratings for the session.

Instructions

Ready to put this code pattern to use? Complete details on how to get started running and using this application are in the README.