- Spring 5.0 Microservices(Second Edition)
- Rajesh R V
- 230字
- 2021-07-02 19:44:53
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.
- 流量的秘密:Google Analytics網(wǎng)站分析與優(yōu)化技巧(第2版)
- 數(shù)據(jù)結(jié)構(gòu)和算法基礎(chǔ)(Java語(yǔ)言實(shí)現(xiàn))
- PostgreSQL技術(shù)內(nèi)幕:事務(wù)處理深度探索
- 數(shù)據(jù)結(jié)構(gòu)習(xí)題精解(C語(yǔ)言實(shí)現(xiàn)+微課視頻)
- INSTANT Sencha Touch
- Python數(shù)據(jù)分析從0到1
- Working with Odoo
- Creating Stunning Dashboards with QlikView
- Statistical Application Development with R and Python(Second Edition)
- Python Interviews
- Ext JS 4 Plugin and Extension Development
- Java EE 8 and Angular
- Android技術(shù)內(nèi)幕(系統(tǒng)卷)
- Android嵌入式系統(tǒng)程序開發(fā)(基于Cortex-A8)
- 你必須知道的.NET(第2版)