- Hands-On Microservices:Monitoring and Testing
- Dinesh Rajput
- 189字
- 2021-06-24 18:24:28
Disadvantages of the microservice architecture pattern
Microservices provide several benefits, but there are also some challenges relating to microservice architecture when developing an enterprise application. These include the following:
- It is sometimes difficult to achieve strong consistency across services and transactions.
- Atomicity, Consistency, Isolation, Durability (ACID) transactions do not span multiple processes. ACID is a set of properties of database transactions intended to guarantee validity, even in the event of errors, power failures, and so on. This can be counteracted, however, using eventual consistency, which helps to manage transactions in a microservice application.
- A distributed system often:
- Is harder to debug or trace
- Has a greater need for end-to-end testing
- Requires you to expect, test for, and handle the failure of any process
- Has more components to maintain, which leads to issues such as redundancy or High Availability (HA)
- It typically requires a cultural change with regards to DevOps, such as how applications are developed and deployed, and the cooperation of Development and Operation teams
In light of its disadvantages, in the next section, we will discuss when to use microservice architecture for your project.
推薦閱讀
- Modern JavaScript Web Development Cookbook
- 物聯網(IoT)基礎:網絡技術+協議+用例
- 物聯網之魂:物聯網協議與物聯網操作系統
- INSTANT PhpStorm Starter
- Oracle SOA Suite 11g Performance Tuning Cookbook
- OpenLayers Cookbook
- Hands-On Full Stack Development with Spring Boot 2 and React(Second Edition)
- 無人機通信
- NB-IoT物聯網技術解析與案例詳解
- 城域網與廣域網(第2版)
- WordPress Web Application Development
- 轉化:提升網站流量和轉化率的技巧
- 中國互聯網發展報告2021
- 數字王國里的虛擬人:技術、商業與法律解讀
- SEO攻略:搜索引擎優化策略與實戰案例詳解