kkrpc
    Preparing search index...

    Interface KafkaProducerLike

    Minimal producer shape used by the Kafka transport.

    interface KafkaProducerLike {
        connect(): Promise<void>;
        disconnect(): Promise<void>;
        send(
            record: { messages: { value: string }[]; topic: string },
        ): Promise<unknown>;
    }
    Index

    Methods

    • Send one or more records to a Kafka topic.

      Parameters

      • record: { messages: { value: string }[]; topic: string }

      Returns Promise<unknown>