Skip to content

Add distributed lock manager for multi-instance deployments#191

Merged
Mac-5 merged 6 commits intoSynapse-bridgez:developfrom
Lex-Studios:feature/issue-174-distributed-locks
Feb 26, 2026
Merged

Add distributed lock manager for multi-instance deployments#191
Mac-5 merged 6 commits intoSynapse-bridgez:developfrom
Lex-Studios:feature/issue-174-distributed-locks

Conversation

@Lex-Studios
Copy link
Copy Markdown

Implements #174

  • Redis-based distributed locks with TTL
  • Atomic operations via Lua scripts
  • Automatic lock renewal for long operations
  • Lock acquisition with timeout and retry
  • Graceful release on drop
  • Prevents duplicate transaction processing

Files:

  • src/services/lock_manager.rs - Lock manager
  • src/services/lock_examples.rs - Usage examples

Closes #174

- Redis-based distributed locks with TTL
- Automatic lock renewal for long-running operations
- Lua scripts for atomic lock operations
- Lock acquisition with timeout and retry
- Graceful lock release on drop
- Usage examples for transaction processing
- Prevents duplicate processing across instances
@Mac-5 Mac-5 self-requested a review February 26, 2026 08:47
@Mac-5 Mac-5 merged commit 9c358ae into Synapse-bridgez:develop Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants