Rest API calls

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Rest API calls

yuvraj singh
Hi I have a use case where I need to call rest apis from a flink . I am not getting much context form internet , please help me on this .

Thanks 

Reply | Threaded
Open this post in threaded view
|

Re: Rest API calls

vino yang
Hi yuvraj,


Thanks, vino.

2018-08-01 3:29 GMT+08:00 yuvraj singh <[hidden email]>:
Hi I have a use case where I need to call rest apis from a flink . I am not getting much context form internet , please help me on this .

Thanks 


Reply | Threaded
Open this post in threaded view
|

Re: Rest API calls

yuvraj singh
Hi vino , thanks for the information .
But I was looking for the use case where I need to call a web service on the stream .

Thanks 
Yubraj Singh 

On Wed, Aug 1, 2018, 8:32 AM vino yang <[hidden email]> wrote:
Hi yuvraj,


Thanks, vino.

2018-08-01 3:29 GMT+08:00 yuvraj singh <[hidden email]>:
Hi I have a use case where I need to call rest apis from a flink . I am not getting much context form internet , please help me on this .

Thanks 


Reply | Threaded
Open this post in threaded view
|

Re: Rest API calls

vino yang
Hi yuvraj,

Sorry, I didn't see it clearly. I think in many UDF contexts, such as MapFunction, ProcessFunction, etc., you can access the Rest API as a client. 
Also if you want to improve performance, maybe async I/O will help you[1].


Thanks, vino.

2018-08-01 11:55 GMT+08:00 yuvraj singh <[hidden email]>:
Hi vino , thanks for the information .
But I was looking for the use case where I need to call a web service on the stream .

Thanks 
Yubraj Singh 

On Wed, Aug 1, 2018, 8:32 AM vino yang <[hidden email]> wrote:
Hi yuvraj,


Thanks, vino.

2018-08-01 3:29 GMT+08:00 yuvraj singh <[hidden email]>:
Hi I have a use case where I need to call rest apis from a flink . I am not getting much context form internet , please help me on this .

Thanks 



Reply | Threaded
Open this post in threaded view
|

Re: Rest API calls

Rong Rong
Hi Yuvraj,

Vino is right, having a customized function is probably the easiest at this moment. 

Alternatively, I think what you are looking for is very much similar to side-input feature of data stream[2]. 

Thanks,
Rong


On Wed, Aug 1, 2018 at 5:10 AM vino yang <[hidden email]> wrote:
Hi yuvraj,

Sorry, I didn't see it clearly. I think in many UDF contexts, such as MapFunction, ProcessFunction, etc., you can access the Rest API as a client. 
Also if you want to improve performance, maybe async I/O will help you[1].


Thanks, vino.

2018-08-01 11:55 GMT+08:00 yuvraj singh <[hidden email]>:
Hi vino , thanks for the information .
But I was looking for the use case where I need to call a web service on the stream .

Thanks 
Yubraj Singh 

On Wed, Aug 1, 2018, 8:32 AM vino yang <[hidden email]> wrote:
Hi yuvraj,


Thanks, vino.

2018-08-01 3:29 GMT+08:00 yuvraj singh <[hidden email]>:
Hi I have a use case where I need to call rest apis from a flink . I am not getting much context form internet , please help me on this .

Thanks