- 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.
- LaTeX Cookbook
- 青少年軟件編程基礎與實戰(zhàn)(圖形化編程三級)
- SSM輕量級框架應用實戰(zhàn)
- 3D少兒游戲編程(原書第2版)
- Java系統(tǒng)化項目開發(fā)教程
- 愛上micro:bit
- Regression Analysis with Python
- ExtJS Web應用程序開發(fā)指南第2版
- Android Development Tools for Eclipse
- Android移動應用項目化教程
- Oracle 12c從入門到精通(視頻教學超值版)
- Scratch從入門到精通
- PowerDesigner 16 從入門到精通
- Python應用與實戰(zhàn)
- 創(chuàng)新工場講AI課:從知識到實踐