Currently I'm working on a pipeline data flow, where each stage except stage 1 is a async
running consumer and producer. I have objects "flowing" through my pipeline, which reference items. In Stage 3 I would like to create a loop and buffer all objects, that meet a special condition (Stage Loop).
If new objects come in (Stage 3) while there are other objects currently buffered (Stage Loop), I would like to check if they match in their referencing item and if so post those to the BufferBlock
of Stage Loop.
The question is, how can I check the referencing item of all objects in Stage Loop from within Stage 3?
The pipeline kinda looks like this:
Incoming objects ->
BufferBlock1 -> Parsing (Stage2) ->
BufferBlock2 -> Processing (Stage3) ->
BufferBlock3 -> Stage Loop ->
Back to BufferBlock 2