I have the following batch format stored in a Kafka topic:
Data generated --> B2E, T3, T2, T1, B2S | B1E, T3, T2, T1, B1S --> Data Consumed
Here BS indicate a batch start, BE indicates batch end and t1,t2,t3 is three different data.
Here is the scanerio:
Before pushing batch end record
B1Eto the topic, we got to know that theB1batch is invalid after doing some validation.In that case all data of
B1batch rangingBStoBEshould go to a particular topic.
So in above example b1 batch should go to topic T1 and b2 batch should go to T2.
How can I do that using Kafka.?

