官术网_书友最值得收藏!

Scaling and deployment

Finally, having your application split into components makes it easier to scale depending on your constraints. Let's say you start getting a lot of customers who book hotels daily, and the PDF generation starts to heat up the CPUs. You can deploy that specific microservice in some servers that have bigger CPUs.

Another typical example are RAM-consuming microservices like the ones that interact with memory databases like Redis or Memcache. You could tweak your deployments, consequently, by deploying them on servers with less CPU and a lot more RAM.

We can, thus, summarize the benefits of microservices as follows:

  • A team can develop each microservice independently, and use whatever technological stack makes sense. They can define a custom release cycle. All they need to define is a language-agnostic HTTP API.
  • Developers break the application complexity into logical components. Each microservice focuses on doing one thing well.
  • Since microservices are standalone applications, there's a finer control on deployments, which makes scaling easier.

The microservices architecture is good at solving a lot of the problems that may arise once your application starts to grow. However, we need to be aware of some of the new issues they also bring in practice.

主站蜘蛛池模板: 溧阳市| 东台市| 万荣县| 安远县| 芜湖市| 博湖县| 玉屏| 自贡市| 肇州县| 儋州市| 廊坊市| 韩城市| 奉化市| 都江堰市| 永修县| 都安| 铜川市| 衡水市| 嫩江县| 奉节县| 顺平县| 周宁县| 广安市| 温宿县| 巨鹿县| 巴林右旗| 武义县| 土默特左旗| 汝城县| 陆河县| 贺州市| 汝州市| 临漳县| 阳原县| 花莲县| 阜康市| 郓城县| 遂川县| 泗阳县| 陕西省| 龙海市|