You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by Lasse Nedergaard <la...@gmail.com> on 2023/03/27 12:01:44 UTC
Custom source
Hi.
I have to use data from a Rest API, very slow changing. Instead of doing an async i/o request I would like to create a source function that read from Rest Api so I can connect and enrich another stream without a lookup for each incoming row.
Flink doc provide an explanation of how to do it but I find it pretty hard get all the concepts to work together and I haven’t been able to find a “simple” app example.
Is there anyone out there knowing a good example or give a simple explanation of best practice for implementing your own source
Med venlig hilsen / Best regards
Lasse Nedergaard
Re: Custom source
Posted by Shammon FY <zj...@gmail.com>.
Hi Lasse
Does your job table/sql or datastream? Here's the doc [1] for customized
source in table and there is an example of socket source.
[1]
https://nightlies.apache.org/flink/flink-docs-master/docs/dev/table/sourcessinks/
Best,
Shammon FY
On Mon, Mar 27, 2023 at 8:02 PM Lasse Nedergaard <
lassenedergaardflink@gmail.com> wrote:
> Hi.
>
> I have to use data from a Rest API, very slow changing. Instead of doing
> an async i/o request I would like to create a source function that read
> from Rest Api so I can connect and enrich another stream without a lookup
> for each incoming row.
> Flink doc provide an explanation of how to do it but I find it pretty hard
> get all the concepts to work together and I haven’t been able to find a
> “simple” app example.
> Is there anyone out there knowing a good example or give a simple
> explanation of best practice for implementing your own source
>
> Med venlig hilsen / Best regards
> Lasse Nedergaard
>
>