Perhaps not so much troubleshooting but more of an...
# troubleshooting
o
Perhaps not so much troubleshooting but more of an architecture question. When I look at the data I try to join I can see the timestamp for when they are pushed to kafka are very far from eachother. Its something like this. One topic "event" has 100 mill messages. Another topic User (compact topic) has 10 mill messages. And they were all sent three months ago. A few have been updated since. Now I have two tasks. Id like a inner join between events and users to create a third topic. How would you handle this? Im considering to save the data to a table where I can look up from every Time I get an event. Another task is I should be able to resend the same messages if the user changes. So if one user has 1000 events then those joins should be resent. In that case I cant use the lookup table right? The reason Im considering the database to lookup from is if I just use rocksdb for state backend and I need to resume from a checkpoint. Then if I have lost state I would have to fetch all users again before the task can continue right? Perhaps flink is not the right tool for this? In my real example I have to join 8 topics.
s
Real-time is only ideal if getting a lot of updates AND latency required is low.. (ie to process the updates immediately) Else a batch program is recommended.
You can use some better formats like Hudi, Iceberg or delta too for both insert and updates.
o
In my case latency required is low. Im just looking at historic data to understand it before I start the task.
s
In Flink you can have large state spillover to disk, but it's difficult & tedious to manage that kinda volume on state unless money is no concern.
Basically AFAIK, you will definitely have to partition your data on the basis of user and based on events you will have to pick up a specific partition, process and store/update somewhere also checkpointing size will increase