Hi <#C065944F9M2|pyflink>. Is there any way to use...
# pyflink
k
Hi #pyflink. Is there any way to use
AsyncDataStream
operator in pyflink. From what I research, this operator is only supported in Java currently, and not in python. We have a use case to make successive API calls to an external service, and having them async would greatly boost the performance of our pipeline. Thanks!
j
Maybe the AsyncTableFunction is an option? You have to create the actual function in Java/Scala/Kotlin ... but it can be registered as a UDF in Flink SQL or Table API. Or there is a community connector - flink-http-connector.
d
@Krishnakumar K Your understanding is correct. We're planning to support this feature in the next release, that is Flink 2.2.
k
Thank you for the response, @Jaehyeon Kim and @Dian Fu! @Dian Fu Can you please let me know when version 2.2 will be released?
d
@Krishnakumar K Flink 2.2 is planned to be code freeze on October 31, 2025. Usually it takes one month or so to release after code freeze. However, I'm planning to work on this feature recently. So I guess you could backport it to other releases if you want to use it earlier after it's finished. You can observe the status by this ticket: https://issues.apache.org/jira/browse/FLINK-38190
k
Got it @Dian Fu, thanks!