recipes icon indicating copy to clipboard operation
recipes copied to clipboard

Joining Kafka topics

Open zentol opened this issue 2 years ago • 3 comments

Importing a recipe request from the Flink slack.

could also include a recipe for how to join two Kafka topics with the race conditions, competing against each other that would be very helpful

--- Mehul Batra

zentol avatar Aug 10 '22 06:08 zentol

if say we want to join two topics on a key and in one topic the data is coming faster than the other one, I want the first topic to wait for the data that is going to come on the second topic in case there is a delay in the data or the join could not happen, once they are joined then we should move ahead/ or forget that key.

MehulBatra avatar Aug 10 '22 06:08 MehulBatra

if say we want to join two topics on a key and in one topic the data is coming faster than the other one, I want the first topic to wait for the data that is going to come on the second topic in case there is a delay in the data or the join could not happen, once they are joined then we should move ahead/ or forget that key.

So, there is always exactly one record with the same key in each of the topics? Can you expand a bit on the use case and nature of those topics?

knaufk avatar Aug 11 '22 20:08 knaufk

yes, exactly one record coming as the key, as it's a primary key, UseCase: Just joining two Kafka topics, with different amounts of speed records are coming so we need to wait so that records don't pass without joining.

MehulBatra avatar Aug 23 '22 06:08 MehulBatra