Hi,
I am trying to implement a flow that has some cyclic logic. Current flow design looks like following:
* +------------------------------------------------ 0 +-----------+
* | | partition |
* | +-----------------+ | | 1 ------>
* +--> 0 | | +-----------+ 0 ---->+-----------+
* >---------> 3 |MergePrioritized | --> | | +-----+
* +--> 1 | | | Partition | 1 --->| Flow|----+
* |+-> 2 | | | | +-----+ |
* || +-----------------+ +-----------+ 2 --->+-------+ |
* |+-------------------------------------------------| Flow | |
* | +-------+ |
* +-------------------------------------------------------------+
However, I faced a lot of troubles related to undefined code behaviour, deadlocks etc. Could you please tell me if there are some recommendations on how to avoid cycles in the stream if you have a repeatable logic that is usually implemented as a loop?
PS: I am using Java as a main language.
Thanks.
– Sergii