- 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.
- The Supervised Learning Workshop
- Oracle 11g從入門到精通(第2版) (軟件開發視頻大講堂)
- LabVIEW2018中文版 虛擬儀器程序設計自學手冊
- Hands-On Image Processing with Python
- 深入淺出Spring Boot 2.x
- 深入淺出Windows API程序設計:編程基礎篇
- Mastering Julia
- Oracle JDeveloper 11gR2 Cookbook
- Learning ArcGIS for Desktop
- HTML5與CSS3基礎教程(第8版)
- 速學Python:程序設計從入門到進階
- Internet of Things with ESP8266
- QGIS Python Programming Cookbook(Second Edition)
- Web性能實戰
- Oracle實用教程