Slide 14
Slide 14 text
Flink Forward 2023 ©
What is the Challenge of Event Ordering?
Order
id
product
user_id
User
id
username
Join Task 1
Join Task 2
Sink Task
OrderSink
id
product
username
Shuffle By
order.id
Shuffle By
user.id
Shuffle By
order.user_id
+I (id=1, product='apple', user_id=11)
-U (id=1, product='apple', user_id=11)
+U (id=1, product='apple', user_id=12)
+I (id=1, product='apple', user_id=11)
-U (id=1, product='apple', user_id=11)
+U (id=1, product='apple', user_id=12) +U (id=1, user_id=12, username='u2')
+I (id=1, user_id=11, username='u1')
-U (id=1, user_id=11, username='u1')
Incorrect! There is no order_id=1 in the result table,
because the update_before is out-of-order.