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

Microservices are distributed and dynamic

Successful microservices implementations encapsulate logic and data within the service. This results in two unconventional situations:

  • Distributed data and logic
  • Decentralized governance

Compared to traditional applications, which consolidate all logic and data into one application boundary, microservices decentralize data and logic. Each service, aligned to a specific business capability, owns its own data and logic:

The dotted line in the preceding diagram implies the logical monolithic application boundary. When we migrate this to microservices, each microservice, A, B, and C, creates its own physical boundaries.

Microservices don't typically use centralized governance mechanisms the way they are used in SOA. One of the common characteristics of microservices implementations are that they are not relaying on heavyweight enterprise-level products, such as an Enterprise Service Bus (ESB). Instead, the business logic and intelligence are embedded as a part of the services themselves.

A retail example with ESB is shown as follows:

A typical SOA implementation is shown in the preceding diagram. Shopping Logic is fully implemented in the ESB by orchestrating different services exposed by Customer, Order, and Product. In the microservices approach, on the other hand, shopping itself will run as a separate microservice, which interacts with Customer, Product, and Order in a fairly decoupled way.

SOA implementations are heavily relaying on static registry and repository configurations to manage services and other artifacts. Microservices bring a more dynamic nature into this. Hence, a static governance approach is seen as an overhead in maintaining up-to-date information. This is why most of the microservices implementations use automated mechanisms to build registry information dynamically from the runtime topologies.

主站蜘蛛池模板: 双柏县| 新郑市| 桑日县| 平顺县| 鲜城| 九龙城区| 华宁县| 静海县| 甘洛县| 富锦市| 湄潭县| 昌图县| 腾冲县| 泽州县| 西平县| 揭东县| 鹤庆县| 云阳县| 离岛区| 商南县| 融水| 雷山县| 开阳县| SHOW| 麻城市| 云梦县| 阿鲁科尔沁旗| 宣城市| 呼玛县| 白沙| 大安市| 固始县| 满城县| 博湖县| 永春县| 衡东县| 两当县| 静乐县| 巴林右旗| 池州市| 宜州市|