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

Leverage "batch" feature for Flow and AYON requests to reduce servers workload #141

Open
2 tasks done
robin-ynput opened this issue Oct 9, 2024 · 0 comments
Open
2 tasks done
Assignees
Labels
type: enhancement Improvement of existing functionality or minor addition

Comments

@robin-ynput
Copy link
Collaborator

robin-ynput commented Oct 9, 2024

Is there an existing issue for this?

  • I have searched the existing issues.

Please describe the feature you have in mind and explain what the current shortcomings are?

As far as I can see each single event is treated individually right now, this might leads to a bunch of requests made to both servers.
I don't know about AYON, but FLOW/SG allows to batch multiple requests at once using the batch method

FLOW/SG is a PostGres (SQL) data base nicely wrapped behind a web portail. Every single edit is translated as 1 request to the server + 1 update in the DB + 1 event creation. This might cause problems for heavy traffic.

Ideally we would have the same for AYON server.

How would you imagine the implementation of the feature?

Adjust the create, delete and update logic from /update_from_ayon.py to make the most of the batch method.

Are there any labels you wish to add?

  • I have added the relevant labels to the enhancement request.

Describe alternatives you've considered:

No response

Additional context:

No response

@robin-ynput robin-ynput added the type: enhancement Improvement of existing functionality or minor addition label Oct 9, 2024
@robin-ynput robin-ynput self-assigned this Oct 9, 2024
@robin-ynput robin-ynput changed the title Leverage "batch" feature for Flow and AYON requests to diminish servers workload Leverage "batch" feature for Flow and AYON requests to reduce servers workload Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Improvement of existing functionality or minor addition
Projects
None yet
Development

No branches or pull requests

1 participant