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

Microservices

Microservices are a functional approach well applied to software. It tries to decompose the entire application functionally into a set of services that can be deployed and scaled independently. Each service does only one job and does it well. It has its own database, decides its own schema, and provides access to datasets and services through well-defined application programming interfaces that are better known as APIs, often paired with a user interface. APIs follow a set communication protocols, but services are free to choose their own technology stack and can be deployed on hardware of choice.

In a microservice environment, as shown in the preceding diagram, there are no layers like in monoliths; instead, each service is organized around a bounded context (https://en.wikipedia.org/wiki/Domain-driven_design#Bounded_context) that adds a business capability to the application as a whole. New capabilities in such an application are added as new services that are deployed and scaled independently. Each user request in a microservices-based application may call one or more internal microservice to retrieve data, process it, and generate the required response, as shown in the following diagram. Such software evolves faster and has low technology debt. They do not get married to a particular technology stack and can adopt a new technology faster:

主站蜘蛛池模板: 旌德县| 泗水县| 澎湖县| 原平市| 宕昌县| 水城县| 新建县| 锡林浩特市| 原阳县| 拉萨市| 安达市| 阳西县| 泊头市| 临湘市| 尉犁县| 咸阳市| 商都县| 彭州市| 叙永县| 独山县| 平阳县| 五指山市| 孟村| 镶黄旗| 益阳市| 黄平县| 金昌市| 南和县| 康保县| 拜城县| 梁河县| 岐山县| 曲靖市| 昆山市| 萍乡市| 巴马| 安乡县| 临汾市| 高陵县| 孝昌县| 原阳县|