官术网_书友最值得收藏!

Microservice architecture pattern

In the previous section, we discussed the monolithic application architecture – in other words, the collection of all modules of an application as a single artifact. There is another architecture pattern that structures an application so that all modules of that application are loosely-coupled, share their services, and are independently deployable. In this approach, each service must be focused on a set of narrowly-related functions and each service runs independently and as a unique process. An application might consist of services, such as the Order Service, the Account Service, and so on. This approach is known as microservice architecture.

Microservice architecture refers to a method of software development in which a large software application is divided into several independently deployable services. These services are small, modular, and follow the single responsibility principle of software development. Each service is treated as a unique process that communicates with each other through a well-defined mechanism. We will discuss this further in Chapter 4, Inter-Service Communication.

In microservice architecture, all services communicate with each other either synchronously, using HTTP or REST, or asynchronously, using AMQP or Kafka. Each service contains its own database. The basic idea behind microservice architecture is to split up your monolithic application into a set of smaller, interconnected services.

A microservice architecture pattern separates concerns on a process level. All processes in this architecture are loosely coupled with each other. They communicate using predefined rules to achieve a business goal. So, let's move on and look at an example of a microservice-based application.

主站蜘蛛池模板: 呼玛县| 玉山县| 融水| 读书| 沙湾县| 静宁县| 互助| 南城县| 永德县| 石阡县| 略阳县| 东乡县| 兴义市| 民丰县| 报价| 盖州市| 洛隆县| 泰来县| 镶黄旗| 洛阳市| 大港区| 合阳县| 汤阴县| 大荔县| 交口县| 太谷县| 仪陇县| 沾化县| 沐川县| 周至县| 靖边县| 彰化县| 兰考县| 会昌县| 西平县| 章丘市| 通城县| 商丘市| 团风县| 和政县| 涟水县|