Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第九章:使用Redis達到線性一致性 - Taco #107

Open
taco0929 opened this issue Aug 10, 2022 · 0 comments
Open

第九章:使用Redis達到線性一致性 - Taco #107

taco0929 opened this issue Aug 10, 2022 · 0 comments
Labels
question Further information is requested

Comments

@taco0929
Copy link

文中提到想要保持線性一致性其中一個的做法是使用 寄存器,很直覺的就想到使用快取(如Redis)去進行。
我主管以前就做過類似的事:利用Redis作為寫入鎖,與單執行緒的特性消除併發,當同時有多人想要寫入時同一筆資料時,只有一個人能夠成功,其他人見到的狀態會是該資料正在編輯中。做法有點類似這篇
但在搜尋網路上有沒有人做過類似的事情時,意外發現了這篇使用Redis cluster,發現這我主管這樣的設計沒有考慮過Redis掛掉怎麼辦XD
因此好奇請問大家覺得使用Redis能否做到線性一致性這件事情?

@kylemocode kylemocode added the question Further information is requested label Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants