- Python Microservices Development
- Tarek Ziadé
- 227字
- 2021-07-02 18:54:18
Illogical splitting
The first issue of a microservice architecture is how it gets designed. There's no way a team can come up with the perfect microservice architecture in the first shot. Some microservices like the PDF generator are an obvious use case. But as soon as you deal with the business logic, there are good chances that your code will move around before you get a good grasp of how to split things into the right set of microservices.
The design needs to mature with some try-and-fail cycles. And adding and removing microservices can be more painful than refactoring a monolithic application.
You can mitigate this problem by avoiding splitting your app in microservices if the split is not evident.
If there's any doubt that the split makes sense, keeping the code in the same app is the safe bet. It's always easier to split apart some of the code into a new microservice later than to merge back to two microservices in the same code base because the decision turned out to be wrong.
For instance, if you always have to deploy two microservices together, or if one change in a microservice impacts the data model of another one, the odds are that you did not split the application correctly, and that those two services should be reunited.
- JavaScript 從入門到項目實(shí)踐(超值版)
- ASP.NET Core Essentials
- Three.js開發(fā)指南:基于WebGL和HTML5在網(wǎng)頁上渲染3D圖形和動畫(原書第3版)
- 深入淺出Prometheus:原理、應(yīng)用、源碼與拓展詳解
- 微服務(wù)設(shè)計原理與架構(gòu)
- GeoServer Beginner's Guide(Second Edition)
- Julia高性能科學(xué)計算(第2版)
- Java程序設(shè)計入門
- PHP+MySQL+Dreamweaver動態(tài)網(wǎng)站開發(fā)從入門到精通(第3版)
- PHP編程基礎(chǔ)與實(shí)例教程
- Android玩家必備
- HTML5+CSS3 Web前端開發(fā)技術(shù)(第2版)
- Spring+Spring MVC+MyBatis從零開始學(xué)
- OpenCV 3計算機(jī)視覺:Python語言實(shí)現(xiàn)(原書第2版)
- Oracle Database XE 11gR2 Jump Start Guide