Hello everyone, I am new to Apache Flink. I am try...
# troubleshooting
a
Hello everyone, I am new to Apache Flink. I am trying to building a newsfeed system using Flink. • I have a
Kafka topic
(containing information about new posts) as the source. • I want to create a Flink Job, where for each new post, followers of the post creator needs to be fetched from a
PostgreSQL table
. • For each follower I am maintaining a
Redis List
. The post id will be appended to each of those Redis Lists. I can't understand how to solve step 2.
k
Hey @Archisman Mridha You can create dynamic streams of 2 thing first one is NewsFeed and other is follower list(Instead of fetching from the postgres - Create a new service that push the same data into another Kafka topic - We can say Rule topic). Create a 2 stream of newsfeed and follower (coming from new kafka topic-rule). Combine this 2 stream with the descriptor function and perform operation. Whenever new followers comes in it will automatically reflect in follower datastream. FYR: https://flink.apache.org/2020/03/24/advanced-flink-application-patterns-vol.2-dynamic-updates-of-application-logic/
s
Can this be applied using Python API @Keyur Makwana?
k
Not sure about python