Concurrency
Coordinate access to shared resources across processes and machines.
- Lock — Distributed lock primitives with lease management, blocking and non-blocking acquisition, and automatic release.
- Shared Lock — Read-write distributed locks for coordinating concurrent access with shared and exclusive modes.
- Semaphore — Rate-limit concurrent access to shared resources with dynamic permit allocation.
Existing middlewares
Beyond the components themselves, every component provides middleware factories for composing component behavior around your own functions. Wrap a function with use() or method with enhance() and apply any of the following middlewares.
- withLockFactory — Wraps function calls with a distributed lock.
- withSemaphoreFactory — Wraps function calls with a distributed semaphore.
- withSharedLockFactory — Wraps function calls with a shared (reader-writer) lock.