Skip to main content

Interface: ExternalStorageConcurrency

common.ExternalStorageConcurrency

Limits on concurrent external storage operations.

Properties

maxDriverOperations

Optional maxDriverOperations: number

Maximum requests in flight at once across every driver registered on this ExternalStorage instance.

Enforced through the StorageDriverLimiter handed to each driver.

Share one instance between workers and clients for a single process-wide budget, or give each its own instance for independent budgets. Defaults to 64.


maxOperationsPerMessage

Optional maxOperationsPerMessage: number

Maximum requests in flight at once on behalf of a single message (e.g. a workflow task activation, an activity task, a client request, or a nexus operation).

Every message gets its own budget of this size. This caps what any one message can take of the shared maxDriverOperations pool and keeps a message carrying many large payloads from starving the others. Defaults to 8.