- Python Microservices Development
- Tarek Ziadé
- 154字
- 2021-07-02 18:54:19
Data storing and sharing
Another problem is data storing and sharing. An effective microservice needs to be independent of other microservices, and ideally, should not share a database. What does this mean for our hotel booking app?
Again, that raises a lot of questions such as the following:
- Do we use the same users' IDs across all databases, or do we have independent IDs in each service and keep it as a hidden implementation detail?
- Once a user is added to the system, do we replicate some of her information in other services databases via strategies like data pumping, or is that overkill?
- How do we deal with data removal?
These are hard questions to answer, and there are many different ways to solve those problems, as we'll learn throughout the book.
Avoiding data duplication as much as possible while keeping microservices in isolation is one of the biggest challenges in designing microservices-based applications.
推薦閱讀
- Python數據分析入門與實戰
- 認識編程:以Python語言講透編程的本質
- Microsoft System Center Orchestrator 2012 R2 Essentials
- D3.js 4.x Data Visualization(Third Edition)
- Asynchronous Android Programming(Second Edition)
- 全棧自動化測試實戰:基于TestNG、HttpClient、Selenium和Appium
- Raspberry Pi Home Automation with Arduino(Second Edition)
- Mastering Unity 2D Game Development(Second Edition)
- STM8實戰
- JavaScript編程精解(原書第2版)
- MATLAB 2020 GUI程序設計從入門到精通
- Effective C++:改善程序與設計的55個具體做法(第三版)中文版(雙色)
- SAP HANA Starter
- Python程序設計
- 軟件自動化測試實戰解析:基于Python3編程語言