Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

There are a few ways to handle the absence of records in a foreign-key join using Kafka Streams:

  1. Inner join: This is the default join behavior in Kafka Streams. It only outputs records that have matching keys in both streams. If a key is only present in one stream, the record is dropped.

  2. Left join: This join type outputs all records from the left stream (the one specified first) and matching records from the right stream. If there are no matching records in the right stream, the field values from the right stream will be null.

  3. Outer join: This join outputs all records from both streams, even if there are no matching keys. If there is no matching record in the right stream, the field values from the right stream will be null.

Which join type to use depends on your use case and what behavior you want to see in the output.