1 个仓库
Synchronization primitives and patterns for managing concurrent access across multiple Go service instances.
Distinct from Go Application Patterns: Candidates focus on general application patterns or monitoring, not the specific act of synchronizing shared data across Go instances.
Explore 1 awesome GitHub repository matching software engineering & architecture · Go Distributed Synchronization. Refine with filters or upvote what's useful.
Redsync 是一个分布式锁管理器和 Go Redis 客户端扩展,旨在确保对共享资源的独占访问。它通过使用 Redis 后端来协调同步并防止分布式环境中的竞态条件,从而在多个进程间实现互斥。 该库通过基于法定人数(quorum)的共识机制维持锁的有效性,要求成功写入大多数独立的 Redis 节点。它利用 Lua 脚本原子操作进行获取和释放,同时采用基于值的归属权验证和生存时间(TTL)过期机制来防止死锁。 该项目提供了分布式协调和应用程序同步功能,利用客户端重试轮询来管理资源获取超时。
Manages concurrent access to shared data across multiple Go service instances to prevent race conditions.