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

Enables to build organic systems

Microservices help us build systems that are organic in nature. This is significantly important when migrating monolithic systems gradually to microservices.

Organic systems are systems that grow laterally over a period of time by adding more and more functions to it. In practice, applications grow unimaginably large in its lifespan, and, in most cases, the manageability of the application reduces dramatically over that same period of time.

Microservices are all about independently manageable services. This enables us to keep adding more and more services as the need arises, with minimal impact on the existing services. Building such systems do not need huge capital investment. Hence, businesses can keep building as part of their operational expenditure.

A loyalty system in an airline was built years ago, targeting individual passengers. Everything was fine until the airline started offering loyalty benefits to their corporate customers. Corporate customers are individuals grouped under corporations. Since the current system's core data model is flat, targeting individuals, the corporate requirement needs a fundamental change in the core data model, and hence, a huge rework to incorporate this requirement.

As shown in the following diagram, in a microservices-based architecture, customer information would be managed by the Customer microservices, and loyalty by the Loyalty microservice:

In this situation, it is easy to add a new Corporate Customer microservice to manage corporate customers. When a corporation is registered, individual members will be pushed to the Customer microservices to manage them as usual. The Corporate Customer microservice provides a corporate view by aggregating data from the Customer microservice. It will also provide services to support corporate-specific business rules. With this approach, adding new services will have only a minimal impact on existing services.

主站蜘蛛池模板: 镇坪县| 什邡市| 蓬溪县| 应用必备| 罗城| 辰溪县| 靖安县| 松江区| 桑日县| 玛纳斯县| 涟源市| 余江县| 高淳县| 焉耆| 双牌县| 石景山区| 怀宁县| 南宫市| 偏关县| 资溪县| 肃南| 卢氏县| 大洼县| 定西市| 大洼县| 额敏县| 西华县| 淮北市| 出国| 错那县| 隆尧县| 龙里县| 樟树市| 房山区| 商南县| 天镇县| 霍州市| 永顺县| 台安县| 丘北县| 左贡县|