- 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.
推薦閱讀
- Monkey Game Development:Beginner's Guide
- 三維圖形化C++趣味編程
- Python計算機視覺編程
- Apache Karaf Cookbook
- Windows Presentation Foundation Development Cookbook
- Python時間序列預測
- 大數據分析與應用實戰:統計機器學習之數據導向編程
- C#應用程序設計教程
- Visual Basic程序設計實驗指導(第二版)
- Getting Started with Python and Raspberry Pi
- Canvas Cookbook
- Go語言底層原理剖析
- Python 3 數據分析與機器學習實戰
- Vue.js 3應用開發與核心源碼解析
- Unity 5.X從入門到精通