- Hands-On Microservices with Kotlin
- Juan Antonio Medina Iglesias
- 278字
- 2021-06-30 19:10:42
Scalability
Microservices should be designed to be independently scalable. If we need to increase how many requests we can handle or how many records we can hold, we should do it in isolation. We should avoid that, due to a coupling on the architecture; the only way to scale our application is scaling several components together or through the system as a whole.
Let's go back to the original SoA application example and handle a scenario where we need to scale our offers capability:

Even if what we need to scale is our offer capability, due to the coupling of the system, we need to do it as whole. We will increase how many instances of the presentation and business layer we have, and we increase our database either with more instances or with a bigger database. Probably, we may need to also update some of those servers as the resources that they require will increase. In a microservices architecture, we could just scale the elements that are needed. Let's view how we could scale the same application using microservices:

We have just increased what was required for the offers' capability and to keep the rest of the architecture intact, we need to consider that in microservices, those servers are smaller and don't need as many resources due to their limited scope.
In a well-designed microservice architecture, we could effectively have more capacity with less infrastructure since it could be optimized for more accurate use and be scaled independently.
We will review more about this topic in the Cloud Native microservices section of this chapter.
- 觸·心:DT時代的大數據精準營銷
- Docker進階與實戰(zhàn)
- Android Native Development Kit Cookbook
- 表哥的Access入門:以Excel視角快速學習數據庫開發(fā)(第2版)
- JavaScript入門經典
- 網站構建技術
- Kotlin編程實戰(zhàn):創(chuàng)建優(yōu)雅、富于表現力和高性能的JVM與Android應用程序
- HTML5從入門到精通(第4版)
- Cocos2d-x Game Development Blueprints
- Learning Python Data Visualization
- 大數據時代的企業(yè)升級之道(全3冊)
- 現代CPU性能分析與優(yōu)化
- AutoCAD基礎教程
- 量子計算機編程:從入門到實踐
- Practical Responsive Typography