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

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.

主站蜘蛛池模板: 高碑店市| 吉安县| 石家庄市| 汾阳市| 中宁县| 肥东县| 襄樊市| 武宣县| 耿马| 三门县| 铜陵市| 金沙县| 蒙自县| 凯里市| 新丰县| 汤原县| 长子县| 吴旗县| 大足县| 嵊州市| 阿拉善右旗| 游戏| 茶陵县| 平山县| 六盘水市| 许昌县| 青龙| 南召县| 夏河县| 两当县| 游戏| 兴和县| 招远市| 越西县| 阿拉善右旗| 贡觉县| 扎囊县| 龙岩市| 榆社县| 久治县| 铜川市|