Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 36721200A5B for ; Wed, 25 May 2016 11:17:16 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 35381160A18; Wed, 25 May 2016 09:17:16 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7EB2B160A17 for ; Wed, 25 May 2016 11:17:15 +0200 (CEST) Received: (qmail 80524 invoked by uid 500); 25 May 2016 09:17:09 -0000 Mailing-List: contact user-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@flink.apache.org Delivered-To: mailing list user@flink.apache.org Received: (qmail 80515 invoked by uid 99); 25 May 2016 09:17:09 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 May 2016 09:17:09 +0000 Received: from mail-lf0-f54.google.com (mail-lf0-f54.google.com [209.85.215.54]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 01D981A0098 for ; Wed, 25 May 2016 09:17:08 +0000 (UTC) Received: by mail-lf0-f54.google.com with SMTP id e130so15553012lfe.3 for ; Wed, 25 May 2016 02:17:08 -0700 (PDT) X-Gm-Message-State: ALyK8tIlZtd9RoqOd/wdyw1Vp4wBcoieAntzsdPWhmx4FG09zR6OlVtbb2myDRSS8wH+6Y9JVjIK3eSmrENdGw== X-Received: by 10.25.157.213 with SMTP id g204mr695349lfe.216.1464167827440; Wed, 25 May 2016 02:17:07 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Aljoscha Krettek Date: Wed, 25 May 2016 09:16:57 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Non blocking operation in Apache flink To: user@flink.apache.org Content-Type: multipart/alternative; boundary=001a1146f4423f0ae30533a72377 archived-at: Wed, 25 May 2016 09:17:16 -0000 --001a1146f4423f0ae30533a72377 Content-Type: text/plain; charset=UTF-8 Hi, there is no functionality to have asynchronous calls in user functions in Flink. The asynchronous action feature in Spark is also not meant for such things, it is targeted at programs that need to pull all data to the application master. In Flink this is not necessary because you can specify a whole plan of operations before executing them. Cheers, Aljoscha On Tue, 24 May 2016 at 20:43 Maatary Okouya wrote: > I'm looking for a way to avoid thread starvation in my tasks, by returning > future but i don't see how is that possible. > > Hence i would like to know, how flink handle the case where in your job > you have to perform network calls (I use akka http or spray) or any IO > operation and use the result of it. > > In sparks i see asynchronous action and so on. I don't see any equivalent > in apache flink. How does it works ? is it supported, or the network call > and any io operation have to be synchronous ? > > any help, indication, reads and so on would be appreciated > --001a1146f4423f0ae30533a72377 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,
there is no functionality to have asynchronous cal= ls in user functions in Flink.=C2=A0

The asynchron= ous action feature in Spark is also not meant for such things, it is target= ed at programs that need to pull all data to the application master. In Fli= nk this is not necessary because you can specify a whole plan of operations= before executing them.=C2=A0

Cheers,
Al= joscha

On Tue, 2= 4 May 2016 at 20:43 Maatary Okouya <maatariokouya@gmail.com> wrote:

I'm looki= ng for a way to avoid thread starvation in my tasks, by returning future bu= t i don't see how is that possible.

In spar= ks i see asynchronous action and so on. I don't see any equivalent in a= pache flink. How does it works ? is it supported, or the network call and a= ny io operation have to be synchronous ?

any help, indication, reads and so on would be appreciated

--001a1146f4423f0ae30533a72377--