You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by Jerry Peng <je...@gmail.com> on 2015/09/04 17:49:21 UTC

Flink join with external source

Hello,

Does a flink currently support operators to use redis?  If I using the
streaming api in Flink and I need to look up something in a redis database
during the processing of the stream how can I do that?

Re: Flink join with external source

Posted by Aljoscha Krettek <al...@apache.org>.
Hi Jerry,
it should be possible to just use the Redis API inside a Flink operator,
for example a map or flatMap. You can use RichFunctions (
https://ci.apache.org/projects/flink/flink-docs-master/apis/streaming_guide.html#rich-functions)
to setup the connection and close it after computation finishes. If you
need exactly-once behaviour you need to handle that yourself, however, in
the database.

I hope that helps but please let us know if you need more information.

Aljoscha

On Fri, 4 Sep 2015 at 17:49 Jerry Peng <je...@gmail.com> wrote:

> Hello,
>
> Does a flink currently support operators to use redis?  If I using the
> streaming api in Flink and I need to look up something in a redis database
> during the processing of the stream how can I do that?
>