Stream Joins
7 min read.
Match clicks with purchases inside a window, enrich a stream from a table kept fresh by a changelog, and see why a replay can change the answer unless the table keeps versions.
Think of it this way: A waiter notes which table ordered a drink and waits up to half an hour for that table to order food, so the two can go on one bill. After half an hour the drink note is thrown away. If the kitchen redoes the evening from the notes in a different order and uses the menu as it is today, last month’s bill comes out different. The fix is to use the menu that was in force on the day.
Match each click with a purchase from the same session within 30 seconds. A click has to wait in state for it.
Check your understanding
Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.
Which join is it?
Sort each trait into the kind of stream join it describes.
Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.
Stream and stream
Drop items hereStream and table
Drop items hereQuiz
8 questionsWhy does a stream-stream join need a window?
Done with this lesson?
Sign in free to keep your progress, streak and quiz scores.