- Spring 5.0 Microservices(Second Edition)
- Rajesh R V
- 246字
- 2021-07-02 19:44:52
Supports polyglot architecture
With microservices, architects and developers get flexibility in choosing the most suitable technology and architecture for a given scenario. This gives the flexibility to design better fit solutions in a more cost-effective way.
Since microservices are autonomous and independent, each service can run with its own architecture or technology, or different versions of technologies.
The following image shows a simple, practical example of polyglot architecture with microservices:

There is a requirement to audit all system transactions and record transaction details such as request and response data, users who initiated the transaction, the service invoked, and so on.
As shown in the preceding diagram, while core services like Order microservice and Product microservice use a relational data store, the Audit microservice persists data in a Hadoop File System (HDFS). A relational data store is neither ideal nor cost effective to store large data volumes, like in the case of audit data. In the monolithic approach, the application generally uses a shared, single database that stores the Order, Product, and Audit data.
In this example, audit service is a technical microservice using a different architecture. Similarly, different functional services could also use different architectures.
In another example, there could be a Reservation microservice running on Java 7, while a Search microservice could be running on Java 8. Similarly, an Order microservice could be written on Erlang, whereas a Delivery microservice could be on the Go language. None of these are possible with a monolithic architecture.
- C++ Builder 6.0下OpenGL編程技術
- 算法精粹:經典計算機科學問題的Python實現
- MATLAB定量決策五大類問題
- 用Flutter極速構建原生應用
- Java 11 Cookbook
- PHP 7+MySQL 8動態網站開發從入門到精通(視頻教學版)
- Getting Started with Laravel 4
- IBM Cognos Business Intelligence 10.1 Dashboarding cookbook
- 新一代SDN:VMware NSX 網絡原理與實踐
- Flowable流程引擎實戰
- Building Dynamics CRM 2015 Dashboards with Power BI
- Webpack實戰:入門、進階與調優(第2版)
- RESTful Web Clients:基于超媒體的可復用客戶端
- 寫給大家看的Midjourney設計書
- WildFly Cookbook