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 42438200B98 for ; Mon, 3 Oct 2016 14:31:27 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 40C8A160ADC; Mon, 3 Oct 2016 12:31:27 +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 54C1A160ACC for ; Mon, 3 Oct 2016 14:31:26 +0200 (CEST) Received: (qmail 70210 invoked by uid 500); 3 Oct 2016 12:31:19 -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 70200 invoked by uid 99); 3 Oct 2016 12:31:19 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2016 12:31:19 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 5D14C1A533C for ; Mon, 3 Oct 2016 12:31:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.29 X-Spam-Level: * X-Spam-Status: No, score=1.29 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, T_KAM_HTML_FONT_INVALID=0.01] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=axiomine-com.20150623.gappssmtp.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id jmfARLpJUXcE for ; Mon, 3 Oct 2016 12:31:15 +0000 (UTC) Received: from mail-ua0-f170.google.com (mail-ua0-f170.google.com [209.85.217.170]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 60DDD5FE36 for ; Mon, 3 Oct 2016 12:31:14 +0000 (UTC) Received: by mail-ua0-f170.google.com with SMTP id v7so74158874uaa.0 for ; Mon, 03 Oct 2016 05:31:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axiomine-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=fgIX3CLR/A9zHuqsxHpTkCSGOB7S/2455n1tFg1q2pY=; b=EsBzG0PsTXKpJ+hhG4z/CBTSUdi3hOMNVPmR3OQi5Udr09dEV1hpz7ANPKzxzyw9YX XmfTjW4ATLbe/wefBcqAw2kpzvcnA/3pgror0YIQwt/C2xr0cvV0qL4Eo67poYpfEmA+ G0Q3zOhXG6ZiGo/0rkZ5b6gv2Xa56h/KPQ86vuTgpCunlELkF58uHNGjitQ0QpElMkS6 vcBBDIdyGz3Hn+ttIVFcKP8MuvYwyns4EtoiDIk0Bd4ZT4djoM49/Qg6SM1IboFlKQuT vwOMZ5iXHgxziv31FukNkm/e4nNYDc/8X+pOFnUVSCmpDSl+A8ow4GYxKEV/pwQfM2iO hCUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=fgIX3CLR/A9zHuqsxHpTkCSGOB7S/2455n1tFg1q2pY=; b=L/qwkbBSaBtPDnJbfshAJPyd32heWiAPeT1xP3/KRlm2QmL40ti1tN9mTzvY4K/FS0 nkNP8a0TOqtmSDv9iqo2uW8CXihxp1I0PgwVNJ9H6zxRwYPdsZ/i9JK2lkRFdUcG21hx ekUPqlAyc6TekhBzzw/GJxuQu+GQsgVrEl8qHkHE08btTLW2nVbKgPz/dTVwjAqBaFVd 2Ap0FIaBGPO67QA4txe9WUAlxAtRz/0QLYWhAXs9zDddPSVuwOhDNJ70/PwL9BBHOeAi x6hVbFiDieMhP7wns+VSWiPZLqcvlJGJJ+0e1hcsdo6nVvlZ17HLI+eRP2is4jlkC7gM l0aQ== X-Gm-Message-State: AA6/9Rm9VeQqPJYu4dJa+0ceszt7aujbXI3MMvUSAMH++4tfmarTYIeu09sco92xpODmXj10/v9j01ZPr6FvNg== X-Received: by 10.176.83.218 with SMTP id l26mr13135169uaa.39.1475497866475; Mon, 03 Oct 2016 05:31:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.94.7 with HTTP; Mon, 3 Oct 2016 05:31:06 -0700 (PDT) X-Originating-IP: [96.241.191.10] From: Sameer W Date: Mon, 3 Oct 2016 08:31:06 -0400 Message-ID: Subject: Side Inputs vs. Connected Streams To: user@flink.apache.org Content-Type: multipart/alternative; boundary=f403045dd56032d360053df51e8d archived-at: Mon, 03 Oct 2016 12:31:27 -0000 --f403045dd56032d360053df51e8d Content-Type: text/plain; charset=UTF-8 Hi, I read the Side Inputs design document. How does it compare to using ConnectedStreams with respect to handling the ordering of streams transparently? One of the challenges I have with ConnectedStreams is I need to buffer main input if the rules stream has not arrived yet. Does this automatically go away with Side Inputs? Will the call to String sideValue = getRuntimeContext().getSideInput(filterString); block if the side input is not available yet? And is the reverse also true? Alternatively, if my rules are not large in number and I want to broadcast them to all nodes is the below equivalent to using SideInputs where side inputs are broadcast to all nodes and ensure that the side input is evaluated before the main input: DataStream ds4 = ds3.connect(dsSide.broadcast()); Will the above ensure that dsSide is always available before ds3 elements arrive on the connected stream. Am I correct in assuming that ds2 changes will continue to be broadcast to ds3 (with no ordering guarantees between ds3 and dsSide, ofcourse). Thanks, Sameer --f403045dd56032d360053df51e8d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

I read the S= ide Inputs design document. How does it compare to using ConnectedStrea= ms with respect to handling the ordering of streams transparently?=C2=A0

One of the challenges I have with ConnectedStreams i= s I need to buffer main input if the rules stream has not arrived yet. Does= this automatically go away with Side Inputs? Will the call to=C2=A0 String sideValue =3D
<= span id=3D"gmail-docs-internal-guid-c714ee7b-8a77-7898-ef08-6ed672c8138d"><= p dir=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;margin-bottom:0pt"><= span style=3D"color:rgb(0,0,0);background-color:transparent;vertical-align:= baseline;white-space:pre-wrap"> =C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0getRuntimeContext().getSideInput(filter= String);

block if the side input is not available yet= ? And is the reverse also true?

Alternatively,= if my rules are not large in number and I want to broadcast them to all no= des is the below equivalent to using SideInputs where side inputs are broad= cast to all nodes and ensure that the side input is evaluated before the ma= in input:

Data= Stream ds4 =3D ds3.connect(dsSide.broadcast());

= Will the above ensure that dsSide is always available before ds3 elements a= rrive on the connected stream. Am I correct in assuming that ds2 changes wi= ll continue to be broadcast to ds3 (with no ordering guarantees between ds3= and dsSide, ofcourse).


Thanks,
Sameer

=


--f403045dd56032d360053df51e8d--