For the complete documentation index, see llms.txt.
Skip to main content
Version: 8.10 (unreleased)

Runtime

Error types returned by every SDK call, and the adaptive backpressure manager that paces requests when the cluster pushes back.

BackpressureManager

Adaptive backpressure manager shared (via Arc) by an SDK client and all its clones.

Initiating operations call acquire before issuing a request and release afterwards, recording the outcome with record_healthy_hint on success or record_backpressure on a backpressure signal. Drain operations (job completion / failure) bypass the gate entirely.

Methods

MethodDescription
acquireAcquire a permit, awaiting until one is available.
newCreate a manager for the given profile.
record_backpressureRecord a backpressure signal from the server.
record_healthy_hintRecord a successful (non-backpressure) completion, triggering passive recovery.
releaseRelease a permit and wake one waiter. In the Legacy profile this is a no-op.
severityThe current severity level.
stateA snapshot of the manager's internal state, for observability.

BackpressureProfile

Backpressure tuning profile, configured via CAMUNDA_SDK_BACKPRESSURE_PROFILE.

Variants

VariantPayloadDescription
BalancedAdaptive global concurrency control (default).
LegacyObserve-only: record signals but never gate requests.

BackpressureSeverity

Backpressure severity level reported by the manager.

Variants

VariantPayloadDescription
HealthyNo recent backpressure.
SoftBackpressure observed; mild throttling.
SevereSustained backpressure; aggressive throttling.

BackpressureState

A point-in-time snapshot of the manager's internal state, for observability.

Fields

FieldTypeDescription
severityBackpressureSeverityCurrent severity level.
consecutiveu32Consecutive backpressure signals since the last healthy decay.
permits_maxOption<u32>Current permit cap, or None when unlimited.
permits_currentu32Permits currently held.
waitersu32Number of callers queued waiting for a permit.
backoff_msu64Current backoff-at-floor delay in milliseconds.

CamundaError

Errors returned by the Camunda SDK.

Variants

VariantPayloadDescription
Config(String)Configuration was invalid or incomplete (e.g. missing OAuth credentials).
Auth(String)Failed to obtain or refresh an authentication token.
Network(Error)A network-level failure occurred (connection, TLS, timeout).
Io(Error)An I/O failure occurred (e.g. while streaming a multipart upload).
Api{ status: u16, body: Option<String> }The server returned a non-success HTTP status.
Serialization(Error)A response payload could not be (de)serialized.
Validation(String)A domain-type or input constraint was violated before sending the request.
Backpressure(String)The client-side backpressure controller rejected the request to avoid unbounded memory growth (waiter queue at capacity).
EventualConsistencyTimeout{ elapsed_ms: u64 }An eventual-consistency polling helper timed out before its predicate was met.

Methods

MethodDescription
statusThe HTTP status code, if this is a CamundaError::Api error.

Result

Convenience alias used throughout the SDK.

pub type Result<T> = std::result::Result<T, CamundaError>;