Restate Typescript SDK
    Preparing search index...
    interface ProducerOptions {
        bufferBytes?: number;
        defaults?: InvocationDefaults;
        onCommitted?: (offset: number) => void;
    }
    Index

    Properties

    bufferBytes?: number

    Maximum combined serialized size of the records waiting to be written to the stream. While the buffer is full, ProducerBase.send waits. Zero disables the buffer: send then waits until the record can be written to the stream directly.

    Defaults to 32 MiB.

    Fields applied to every record unless the record sets them itself. They are sent once, when the stream is opened.

    onCommitted?: (offset: number) => void

    Called with the commit watermark every time it advances: every record with an offset up to and including it is durably committed by Restate. Use it to checkpoint an exactly-once source.

    If the callback throws, the producer is aborted with the thrown error.