- 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.
推薦閱讀
- 數(shù)據(jù)科學(xué)實(shí)戰(zhàn)手冊(cè)(R+Python)
- INSTANT OpenCV Starter
- Oracle 11g從入門到精通(第2版) (軟件開發(fā)視頻大講堂)
- Microsoft Dynamics 365 Extensions Cookbook
- Clojure for Domain:specific Languages
- Ray分布式機(jī)器學(xué)習(xí):利用Ray進(jìn)行大模型的數(shù)據(jù)處理、訓(xùn)練、推理和部署
- C語(yǔ)言實(shí)驗(yàn)指導(dǎo)及習(xí)題解析
- Python Digital Forensics Cookbook
- 算法超簡(jiǎn)單:趣味游戲帶你輕松入門與實(shí)踐
- INSTANT PLC Programming with RSLogix 5000
- Design Patterns and Best Practices in Java
- 信息學(xué)奧林匹克競(jìng)賽初賽精講精練
- Microsoft XNA 4.0 Game Development Cookbook
- 深入理解MySQL主從原理
- Python3從入門到實(shí)戰(zhàn)