You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(broker): Enables message keys for batch publishing
Allows specifying a message key when publishing a batch of
messages, enabling partition control.
Introduces the option to set a default key for a batch publisher
and override it per message if required.
Closes#2514
refactor(confluent): Removes unused blank line
feat(publisher): enable per-message keys for batch publishing
Add support for supplying per-message publish keys when sending batches from publishers.
Introduce a semantic alias for response objects used for publishing, add a publish-key accessor on responses, and implement a singledispatch-based extractor to derive (body, key) tuples from arbitrary batch items. This allows callers to pass message-specific keys (or fall back to a publisher default) without ad-hoc mapping shapes or heavy isinstance checks, and avoids extra allocations when no per-message keys are present.
Also expose the new alias in package exports, adjust batch publisher config handling, add tests covering per-message keys and default-key fallback, and bump package version metadata.
refactor(response): add precise type hints for batch extraction locals
test(tests): verify per-message keys for batch publishing in Kafka and Confluent
test(tests.brokers): wrap long assertion messages for readability
0 commit comments