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

Response To API Handling #89

Open
brothercorvo opened this issue Sep 21, 2024 · 0 comments
Open

Response To API Handling #89

brothercorvo opened this issue Sep 21, 2024 · 0 comments

Comments

@brothercorvo
Copy link
Contributor

The integration manager currently utilizes a static RESPONSE action to construct the topic that is published across the integration manager upon the completion of a flow. This approach is problematic as it necessitates every DPService to subscribe to the same topic, leading to the indiscriminate distribution of all responses to all services.

Solutions

  1. We could have services subscribe to every flow they use,
    • Advantages:
      • matches the current zmanager implementation
    • Disadvantages:
      • This limits the dynamic nature of digitalpy as we would need to define in advance every flow which could be called by a given service
  2. We could change the integration manager so that if a flow is finished, it will publish the topic with the service_id as the config
    • Advantages:
      • Simple to implement with integration manager and service
      • Flexible
      • Fewer topics required
    • Disadvantages:
      • Uses the config in a potentially unexpected way
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant