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

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:

主站蜘蛛池模板: 海兴县| 麦盖提县| 吴忠市| 青川县| 修武县| 双鸭山市| 军事| 眉山市| 台前县| 洛扎县| 伊春市| 祁阳县| 耿马| 扶沟县| 阿拉尔市| 光山县| 奎屯市| 永康市| 西吉县| 商都县| 苍山县| 锡林浩特市| 边坝县| 大名县| 葫芦岛市| 漳州市| 德阳市| 六盘水市| 清河县| 临城县| 崇文区| 黎城县| 集安市| 安新县| 新和县| 当雄县| 互助| 紫阳县| 郓城县| 崇文区| 喜德县|