How to change SerDes after mapping #292
-
Hey there! I have a stream: And I want to change the underlying types from a <string, AvroFleetAggregator> to a <long, AvroFleetKafkaMessage> type instead. What I've tried to do is to use Map: How do I change the SerDes it should use? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
All depends what is the next processor in your topology ? Best regards, |
Beta Was this translation helpful? Give feedback.
-
It seems to be the LeftJoin that does it. Should I produce it to an output topic? Even though I am using it straight afterwards? Furthermore it seems when I produce to output topics, the entire stream becomes slower compared to just never producing to output topics. I imagine I should increase the amount of stream threads? Is there any way to know how many threads to increase it to? Like a rule of thumb or something |
Beta Was this translation helpful? Give feedback.
The correct serdes could be :
Key : Int64SerDes
Value : AvroFleetKafkaMessage's serdes, so maybe SchemaAvroSerDes if you want to use Schema Reegistry.
In this situation, the serdes at the GroupByKey level is actually the serdes before the groupByKey operation, so the LeftJoin processor, which is actually the same than Map(..)