Welcome back to developing cloud-native applications based on microservice architecture. In the first part we introduced the goal: to build a sample e-commerce Java app. There we discussed domain-driven (as opposed to event-driven) design, the structure, and various open source tools. Everything was prepared for deployment in the cloud. Now it’s time to containerize, publish, and test the program. As always, you can actually use the convenient copy-and-paste snippets below to follow along.

If you’re building an online store with Java backend, you may need a trustworthy partner to speak to and ask questions. Contact BellSoft senior engineers by clicking the button and filling the form. Together we’ll bring your project to new heights!

Set Up Cloud-Native Infrastructure

As mentioned in my previous article, our little case study features microservices tightly coupled with Java. So, we cannot afford the luxury of certain non-Java libraries that address common issues such as load balancing, fault tolerance, etc. It might be a problem for future-us when migrating the application to another programming language or system. Luckily, it can be solved with the introduction of infrastructure, which includes Docker and Kubernetes. This part will focus on making our e-commerce software cloud-native.

Spring Boot offers Cloud-Native Buildpack that generates a Docker Image from a Spring Boot project. It also uses BellSoft Liberica JDK as a default JVM for Java applications.

#java #kubernetes #cloud

Part 2: Building Cloud-Native Java Microservices with OpenJDK
2.70 GEEK