Anatomy of Microservice Decomposition Services
In Chapter 1, Software Architecture Patterns, we discussed the microservice architecture and its benefits and challenges. The microservice architecture approach is all about dividing a complex monolithic application into several different independent services, which run independently on several machines or cloud servers. In this chapter, we will discuss the anatomy of the microservice architecture and look at how to decompose a monolithic application into a number of processes.
This chapter will discuss microservices in detail, including how to use applications and services. We will also look at the decomposition of the microservice architecture on the basis of business capability and the domain and subdomain.
By the end of this chapter, you will understand how microservices are built and will be able to build your own. You will also learn why the microservice architecture is loosely coupled and the difference between Simple Object Access Protocol (SOAP) and RESTful microservices.
This chapter will cover the following topics:
- Anatomy of a microservice
- Decomposition based on business capability
- Decomposition based on domain
- Microservice chassis for common cross-cutting concerns
- Building microservices
- SOAP versus RESTful microservices
Let’s look at these topics in detail.