- Mastering Microservices with Java 9(Second Edition)
- Sourabh Sharma
- 321字
- 2021-07-02 21:54:41
Services design
The following third design depicts the microservices. Here, each component represents autonomy. Each component could be developed, built, tested, and deployed independently. Here, even the application User Interface (UI) component could also be a client and consume the microservices. For the purpose of our example, the layer designed is used within μService.
The API Gateway provides the interface where different clients can access the inpidual services and solve the following problems:
What do you do when you want to send different responses to different clients for the same service? For example, a booking service could send different responses to a mobile client (minimal information) and a desktop client (detailed information) providing different details, and something different again to a third-party client.
A response may require fetching information from two or more services:

After observing all the sample design diagrams, which are very high-level designs, you might find out that in monolithic design, the components are bundled together and tightly coupled.
All the services are part of the same bundle. Similarly, in the second design figure, you can see a variant of the first figure where all services could have their own layers and form different APIs, but, as shown in the figure, these are also all bundled together.
Conversely, in microservices, design components are not bundled together and have loose coupling. Each service has its own layers and DB, and is bundled in a separate archive. All these deployed services provide their specific APIs such as Customers, Bookings, or Customer. These APIs are ready to consume. Even the UI is also deployed separately and designed using μService. For this reason, it provides various advantages over its monolithic counterpart. I would still remind you that there are some exceptional cases where monolithic application development is highly successful, such as Etsy, and peer-to-peer e-commerce web applications.
Now let us discuss the limitations you'd face while working with Monolithic applications.
- ExtGWT Rich Internet Application Cookbook
- Mastering SVG
- Learning Laravel 4 Application Development
- C語言實驗指導及習題解析
- 小程序開發(fā)原理與實戰(zhàn)
- 零基礎(chǔ)輕松學SQL Server 2016
- SQL經(jīng)典實例(第2版)
- 軟件品質(zhì)之完美管理:實戰(zhàn)經(jīng)典
- RSpec Essentials
- Java高并發(fā)核心編程(卷1):NIO、Netty、Redis、ZooKeeper
- LabVIEW虛擬儀器入門與測控應用100例
- Building Wireless Sensor Networks Using Arduino
- Creating Data Stories with Tableau Public
- 深入分析GCC
- TypeScript圖形渲染實戰(zhàn):2D架構(gòu)設計與實現(xiàn)