Microservice Examples
Microservices Example Overview

In this course, we will learn the concepts of microservice and spring framework and focus on microservice examples.

Learning Objectives

  • Understand the uses of microservice

Intended Audience

  • Beginner Java developers
  • Java developers interested in learning how to Build and Deploy RESTful Web Services
  • Java Developers who want to develop web applications using the Spring framework
  • Java Developers who want to develop web applications with microservices
  • Java Developers who wish to develop Spring Boot Microservices with Spring Cloud


  • Basic Java knowledge

Microservices Example Overview. Hello everyone. Good news, today we'll look at microservices through a code example. In the example, we will use Open Liberty. It is a lightweight framework that allows you to build fast and efficient cloud-native Java microservices. It provides you the live reload, so you have quick iteration with your development. It also starts up fast with a low memory footprint. Open Liberty implements Jakarta EE and MicroProfile. As you know, Jakarta EE, formerly known as Java EE, is an open-source Java platform for building enterprise applications. It provides you to use specifications for common services such as transaction management, security, and database access. The Jakarta specifications that Open Liberty implementations are Jakarta Context Dependency Injection, Jakarta Persistence, Jakarta Restful Web Services, Jakarta Security, Jakarta JSON Binding, Jakarta Bean Validation.

MicroProfile, introduced by Eclipse, is a modular set of technologies that are designed so that we can write cloud-native Java microservices. Cloud-native is a new term that has become popular recently. It's an industry-wide approach for developing and rapidly deploying applications to the cloud at scale. Cloud-native applications are designed around team-managed microservices and developed by using agile practices and continuous integration, continuous delivery to streamline deployment. There are a lot of vendors that provide cloud platforms, but open source and open standards are essential enablers for avoiding vendor lock-in. This is a fact that makes MicroProfile a strong and effective tool because it is open source. You can expect its code through this link. Okay, that's enough for the intro. Let's talk about our microservice project details. I'm going to make a simple citizen registry application using microservices architecture. It consists of two different services: Citizen Service and National Identification Number Service. Here, citizen service will communicate and get the citizen identification number from the national identification number service.


About the Author
Learning Paths

OAK Academy is made up of tech experts who have been in the sector for years and years and are deeply rooted in the tech world. They specialize in critical areas like cybersecurity, coding, IT, game development, app monetization, and mobile development.