armature-distributed
Distributed system primitives for the Armature framework.
Features
- Distributed Locks - Coordinated access control
- Leader Election - Single leader among instances
- Rate Limiting - Distributed rate limits
- Caching - Distributed cache invalidation
- Circuit Breaker - Shared circuit state
Installation
[]
= "0.1"
Quick Start
Distributed Lock
use DistributedLock;
let lock = redis.await?;
// Acquire lock
let guard = lock.acquire.await?;
// Do exclusive work...
// Lock released when guard is dropped
Leader Election
use LeaderElection;
let election = redis.await?;
election.run.await?;
Distributed Rate Limiter
use DistributedRateLimiter;
let limiter = redis.await?;
if limiter.check.await?
License
MIT OR Apache-2.0