Restate Typescript SDK
    Preparing search index...

    Interface ExactlyOnceInvocationExperimental

    A record to send through an ExactlyOnceProducer.

    interface ExactlyOnceInvocation {
        body?: string | Uint8Array<ArrayBufferLike>;
        handler?: string;
        headers?: Record<string, string>;
        idempotencyKey?: string;
        invokeAt?: Date;
        key?: string;
        limitKey?: string;
        offset: number;
        scope?: string;
        service?: string;
        traceparent?: string;
        tracestate?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    body?: string | Uint8Array<ArrayBufferLike>

    Invocation payload. Strings are encoded as UTF-8.

    handler?: string

    Target handler name.

    headers?: Record<string, string>

    Headers. A record's own headers are added to these, overriding the same keys.

    idempotencyKey?: string

    Idempotency key used by Restate to deduplicate the invocation.

    invokeAt?: Date

    Schedule the invocation at this time.

    key?: string

    Target key, required when the target is a Virtual Object or a Workflow.

    limitKey?: string

    Concurrency/rate limit key.

    offset: number

    Position of this record in the source, e.g. a Kafka offset. Must be strictly greater than the offset of the previous record sent by this producer, and at most Number.MAX_SAFE_INTEGER. Gaps are allowed.

    scope?: string

    Invocation scope.

    service?: string

    Target service name.

    traceparent?: string

    W3C traceparent.

    tracestate?: string

    W3C tracestate.