KIP-303 — Add Dynamic Routing in Streams Sink
Accepted Kafka 2.0 (target; release unconfirmed) Streams
Adds a TopicNameExtractor interface to the Kafka Streams DSL's to() sink operator, allowing the output topic name to be computed dynamically per-record from the record's key, value, and headers at runtime. All Streams topologies required output topic names to be known at topology build time, making it impossible to route records to dynamically chosen topics based on message content.
Details
| Author | Guozhang Wang |
| Status | Accepted |
| Kafka Version | 2.0 (target; release unconfirmed) |
| JIRA | KAFKA-4936 |
| Wiki | View on Apache Wiki |
| Created | 2018-05-15 |
| Last Modified | 2018-05-25 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.