Skip to main content

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.