Hi Flink experts, I’m working flink async io program for stream join outer database(mysql),but found sync,please give some advice, or provide some async demo. thanks asyncInvoke method are as follow:
Best, Venn |
Hi Venn, I think `AsyncFunction#asyncInvoke` should be used to submit asynchronous tasks for the input records instead of executing the tasks directly. However, it seems that in the code fragment, the query is executed directly in the asyncInvoke method. I think you may also find more information in the document page [1]. A point might need to be noted is that in the example of the document page, the call to the `client#query` returns a Future, thus is is an asynchronous action instead of executing the query directly. Best, Yun
|
In reply to this post by venn
Hi Venn, I think `AsyncFunction#asyncInvoke` should be used to submit asynchronous tasks for the input records instead of executing the tasks directly. However, it seems that in the code fragment, the query is executed directly in the asyncInvoke method. I think you may also find more information in the document page [1]. A point might need to be noted is that in the example of the document page, the call to the `client#query` returns a Future, thus is is an asynchronous action instead of executing the query directly. Best, Yun
|
Free forum by Nabble | Edit this page |