Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoiding update loops in circular flow configurations. #1262

Open
3 tasks
SvenHoeffler opened this issue Jul 1, 2021 · 0 comments
Open
3 tasks

Avoiding update loops in circular flow configurations. #1262

SvenHoeffler opened this issue Jul 1, 2021 · 0 comments
Assignees
Labels
Basaas Core Member Cloud Ecosystem Core Member Wice Core Member

Comments

@SvenHoeffler
Copy link
Contributor

If a user has a flow configuration that includes a loop (e.g. A <-> B, or A -> B -> C -> A), there is currently the risk of this leading to endless updates being sent back and forth. For example, in a bidirectional flow configuration A <-> B, the following might happen:

  • User updates entry abc in system A
  • Connector A propagates that update to connector B
  • Connector B updates the entry abc in system B
  • In the next flow execution, connector B notices that entry abc has recently been updated, and propagates that update to Connector A
  • Connector A updates entry abc in system A.
  • In the next flow execution, connector A notices that entry abc has recently been updated...
  • repeat forever

They key approach in solving this issue is breaking such a propagation circle in at least one point, preferably several. Some connectors or systems are capable of recognizing that an entry has not actually been modified, and will not propagate it as updated in the next flow executions, breaking the loop at that point.

However, this capability cannot be assumed to be present for most connectors, and as such it would be preferable if an architectural solution as part of the framework could be found.


To Do

  • Discuss and investigate issue of update loops
  • Research potential solutions
  • Document findings

@SvenHoeffler SvenHoeffler added Basaas Core Member Wice Core Member Cloud Ecosystem Core Member labels Jul 1, 2021
@SvenHoeffler SvenHoeffler self-assigned this Jul 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Basaas Core Member Cloud Ecosystem Core Member Wice Core Member
Development

No branches or pull requests

1 participant