Hi Jack,

Thanks for the quick reply. Having tried to add windowing that does not seem to 
help. Here is an example pipeline [1].

I'm trying to re-create the slowly updating side-input outlined in [2], a 
common beam pattern.

The side-input is created as a bounded node in the graph, and it is not clear 
how that would affect things. It does not yet [3] seem possible to create 
unbounded sources, but even if generating ticks externally and reading them 
from PubSub, thus creating an unbounded side-input, it doesn't seem to work. 
This implies to me that the bounding is not the issue here, but if you can 
shine some light on how the bounding affects this situation that would be great.

Could it have something to do with support for ViewFn missing [4]?

[1] https://gist.github.com/KaneKnight/e549b0eb16c94c315cbcbd7dbfee5ae7
[2] 
https://beam.apache.org/documentation/patterns/side-inputs/#slowly-updating-side-input-using-windowing
[3] https://github.com/apache/beam/blob/master/CHANGES.md#2400---unreleased
[4] https://issues.apache.org/jira/browse/BEAM-3305

Thanks,

Kane Knight

On 16 May 2022, at 16:33, Jack McCluskey 
<jrmcclus...@google.com<mailto:jrmcclus...@google.com>> wrote:

Hey Kane,

The Go SDK should support side inputs on Dataflow. Are you windowing the side 
input, or are they in the global window? If they aren't windowed the side input 
will block until the end of the global window, which would cause issues.

Thanks,

Jack McCluskey

On Mon, May 16, 2022 at 7:05 AM Kane Knight 
<k...@hoxtonanalytics.com<mailto:k...@hoxtonanalytics.com>> wrote:
Hi there,

I’m trying out a streaming pipeline which reads events from a pubsub topic and 
I want to pass a side input to the stage that processes this pubsub event, 
updating the side input value every 5 minutes using an impulse that kicks off a 
time.Ticker which emits every 5 minutes.

The streaming side using the pubsubio data source didn’t seem to be working in 
this configuration as pubsub messages were not being acked. However, this 
normally works without the side input configuration.

So my question is, are side inputs available to use in the go sdk running on 
dataflow? Is there a bug or known issue?

Thank you,
Kane Knight

Reply via email to