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
{{ message }}
This repository was archived by the owner on Nov 20, 2024. It is now read-only.
The kafka streams documentation states that the serialization/deserialization of kafka message keys is not handled by the framework and it is left to Kafka:
"It is worth to mention that Kafka Streams binder does not serialize the keys on outbound - it simply relies on Kafka itself"
It is worth to mention that Kafka Streams binder does not deserialize the keys on inbound - it simply relies on Kafka itself
However, when using kafka streams binder, the binder automatically creates a -repartition topic because the serialization/deserialization code uses the map function on the stream. This marks the stream for re-partitioning and any subsequent group by operation done by client code results in creation of a repartition topic.
The use of Spring cloud stream should ideally be transparent and side effect free. Since there is no serialization/deserialization done by the framework when it comes to keys, there is a case to use mapValues instead of map when doing message value serialization/deserialization. This will prevent creation of any extra topics.
The following SO has the details:
(https://stackoverflow.com/questions/49704688/groupbykey-creates-repartition-topic-even-though-there-is-no-key-change?answertab=active#tab-top)
The text was updated successfully, but these errors were encountered:
The kafka streams documentation states that the serialization/deserialization of kafka message keys is not handled by the framework and it is left to Kafka:
However, when using kafka streams binder, the binder automatically creates a -repartition topic because the serialization/deserialization code uses the map function on the stream. This marks the stream for re-partitioning and any subsequent group by operation done by client code results in creation of a repartition topic.
The use of Spring cloud stream should ideally be transparent and side effect free. Since there is no serialization/deserialization done by the framework when it comes to keys, there is a case to use mapValues instead of map when doing message value serialization/deserialization. This will prevent creation of any extra topics.
The following SO has the details:
(https://stackoverflow.com/questions/49704688/groupbykey-creates-repartition-topic-even-though-there-is-no-key-change?answertab=active#tab-top)
The text was updated successfully, but these errors were encountered: