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

Allows substitution

Microservices are self-contained independent deployment modules, enabling us to substitute one microservice with another similar microservice.

Many large enterprises follow buy-versus-build policies for implementing software systems. A common scenario is to build most of the functions in-house and buy certain niche capabilities from specialists outside. This poses challenges in the traditional monolithic applications since these application components are highly cohesive. Attempting to plug in third-party solutions to the monolithic applications results in complex integrations. With microservices, this is not an afterthought. Architecturally, a microservice can be easily replaced by another microservice developed, either in-house or even extended by a microservice from a third party:

A pricing engine in the airline business is complex. Fares for different routes are calculated using complex mathematical formulas known as pricing logic. Airlines may choose to buy a pricing engine from the market instead of building the product in-house. In the monolithic architecture, Pricing is a function of Fares and Booking. In most cases, Pricing, Fares, and Bookings are hardwired, making it almost impossible to detach.

In a well-designed microservices system, Booking, Fares, and Pricing will be independent microservices. Replacing the Pricing microservice will have only a minimal impact on any other services, as they are all loosely coupled and independent. Today, it could be a third-party service, tomorrow, it could be easily substituted by another third-party service or another home grown service.

主站蜘蛛池模板: 门头沟区| 关岭| 望都县| 新疆| 叙永县| 新沂市| 怀集县| 于田县| 铅山县| 黔西县| 霍州市| 遂川县| 万州区| 亚东县| 游戏| 金湖县| 大安市| 枞阳县| 龙川县| 江孜县| 平南县| 永州市| 施秉县| 西华县| 长宁区| 紫阳县| 邵武市| 汶川县| 齐河县| 体育| 乐昌市| 哈巴河县| 广灵县| 商水县| 抚顺市| 大理市| 永嘉县| 海城市| 犍为县| 桦甸市| 天柱县|