Skip to content

Set the key for batch producing #2514

@yautkin

Description

@yautkin

Please add possibility to add key for messages in kafka batch producing. For the start, suggest add one key for all messages in 1 batch.

It related with
broker.publish_batch()
broker.publisher(...batch=True).publish()

for example using *[{"key":"key", "message":"message"},...] as messages

Metadata

Metadata

Assignees

No one assigned

    Labels

    AioKafkaIssues related to `faststream.kafka` moduleConfluentIssues related to `faststream.confluent` moduleenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions