Microservices are small self-contained services that are independently deployed and communicate over well-defined APIs. They are highly maintainable and testable and thus can bring great flexibility to the application. This makes microservices a popular approach in software development. Spring Boot is one of the best backend frameworks that is easy to build and run microservices. Spring Boot uses Apache Tomcat by default as a Java web application server to process HTTP requests.
In this article, basic concepts of deploying Microservices with Spring Boot will be covered. The
application that will be built is a to-do web application. There are 2 services to be constructed:
Todo and Person. The Todo service stores to do tasks belonging to a person. The Person service
stores information about a person and communicates with the Todo service to retrieve the person's
list of to-dos. Two ways of deployment will be shown to deploy these services. The first way of
deployment uses the popular Eureka as a service registry and the second uses
Architect.io to perform service mesh for the microservices to
communicate with each other.