Re: HTTP post request example for async IO

Posted by Stefan Richter on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/HTTP-post-request-example-for-async-IO-tp16831p16838.html

Hi,

did you see the example code in the documentation here: https://ci.apache.org/projects/flink/flink-docs-release-1.3/dev/stream/asyncio.html ? This code does async calls agains a database, but I think it should be straight forward to replace this part

Future<String> resultFuture = client.query(str);
with your HTTP post request call, returning a Future.

Best,
Stefan


Am 21.11.2017 um 11:46 schrieb shashank agarwal <[hidden email]>:

Hello,

Is anybody has an example of HTTP post request using Async io? 

Shashank