- 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.
推薦閱讀
- 大話PLC(輕松動漫版)
- Microsoft Exchange Server PowerShell Cookbook(Third Edition)
- Building Modern Web Applications Using Angular
- 零基礎(chǔ)學C++程序設(shè)計
- Effective Python Penetration Testing
- Magento 1.8 Development Cookbook
- Scratch3.0趣味編程動手玩:比賽訓練營
- 細說Python編程:從入門到科學計算
- Spring Boot實戰(zhàn)
- 關(guān)系數(shù)據(jù)庫與SQL Server 2012(第3版)
- 零基礎(chǔ)學編程系列(全5冊)
- Unity 5 Game Optimization
- Java面試一戰(zhàn)到底(基礎(chǔ)卷)
- 鋁合金陽極氧化與表面處理技術(shù)(第三版)
- Java EE互聯(lián)網(wǎng)輕量級框架整合開發(fā):SSM+Redis+Spring微服務(上下冊)