- 基于mysql实现:阻塞,重入,性能低
- 基于redis实现:阻塞,性能高
- 基于zk实现:阻塞,性能高 以上三种分布式锁都在秒杀场景下测试通过,能够完全保证库存的正确。具体三种分布式锁的实现过程和讨论 可以参考distribute-lock项目doc文档部分。
-
Notifications
You must be signed in to change notification settings - Fork 0
xyzmonday/distribute-tools
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published