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

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.

主站蜘蛛池模板: 防城港市| 本溪市| 曲阜市| 仁怀市| 宜都市| 多伦县| 沙雅县| 蓬溪县| 荆门市| 武山县| 洮南市| 古浪县| 霍林郭勒市| 马公市| 乐昌市| 鹤庆县| 图片| 景德镇市| 拜城县| 墨竹工卡县| 通化县| 河源市| 昌平区| 定襄县| 泽州县| 贺州市| 雷山县| 岑溪市| 宜城市| 益阳市| 安龙县| 平远县| 德兴市| 长寿区| 沾益县| 合阳县| 宜黄县| 宁蒗| 藁城市| 治县。| 哈巴河县|