- Spring 5.0 Microservices(Second Edition)
- Rajesh R V
- 182字
- 2021-07-02 19:44:51
Microservices with polyglot architecture
Since microservices are autonomous and abstract everything behind the service APIs, it is possible to have different architectures for different microservices. A few common characteristics that we see in microservices implementations are as follows:
- Different services use different versions of the same technologies. One microservice may be written on Java 1.7 and another one could be on Java 1.8.
- Different languages for developing different microservices, such as one microservice in Java and another one in Scala.
- Different architectures such as one microservice using Redis cache to serve data while another microservice could use MySQL as a persistent data store.
A polyglot language scenario is depicted in the following diagram:

In the preceding example, since Hotel Search is expected to have high transaction volumes with stringent performance requirements, it is implemented using Erlang. In order to support predictive search, Elastic Search is used as the data store. At the same time, Hotel Booking needs more ACID transactional characteristics. Therefore, it is implemented using MySQL and Java. The internal implementations are hidden behind service endpoints defined as REST/JSON over HTTP.
- .NET之美:.NET關(guān)鍵技術(shù)深入解析
- ReSharper Essentials
- Android開發(fā)精要
- Java程序員面試算法寶典
- Swift 3 New Features
- Scientific Computing with Scala
- 單片機(jī)應(yīng)用與調(diào)試項(xiàng)目教程(C語言版)
- Swift Playgrounds少兒趣編程
- IBM Cognos Business Intelligence 10.1 Dashboarding cookbook
- Quantum Computing and Blockchain in Business
- Developing SSRS Reports for Dynamics AX
- C語言程序設(shè)計(jì)與應(yīng)用(第2版)
- Hack與HHVM權(quán)威指南
- Three.js權(quán)威指南:在網(wǎng)頁上創(chuàng)建3D圖形和動(dòng)畫的方法與實(shí)踐(原書第4版)
- 例說FPGA:可直接用于工程項(xiàng)目的第一手經(jīng)驗(yàn)