-
Notifications
You must be signed in to change notification settings - Fork 2
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
[FEAT] Process notification requests and cancellations asynchronously #438
Comments
Hi @peyman-mohtashami, thanks for adding the issue. Can you and @mpgxvii give an overview of what requests bundling is required? The appserver already has a few endpoints which support this, such as
I agree these are not async and perhaps we can look into that for quicker responses, but Joris already made a start on that here where async is useful. |
Yes I think on the appserver side we already have the batch notification adding, so I think we would just need to implement this on the Questionnaire app side? I think initially we wanted to schedule these individually because we needed to store the notification ids back to each task, but maybe we can process this afterwards instead. |
Thanks @yatharthranjan. Are these endpoints used in the Questionnaire app? @mpgxvii, I checked the alpha version of the Questionnaire app and couldn't find usage of these endpoints. |
@peyman-mohtashami Yes these are not implemented yet on the questionnaire app side. |
Thanks @mpgxvii. |
I think this should be the resource where paths are defined, right? |
Yes, that's correct. |
While working on this I encountered some odd behaviour: The endpoint While doing this we log I propose we make this endpoint a GET request to avoid confusion, remove the logic involving the schedulerservice (because it doesn't seem to do anything) and rename the function But maybe I am missing something here? If not, let me know and I can get started on a pull-request. |
Hi @Bdegraaf1234 , i can understand the confusion. There are 2 steps related to the notifications in the appserver -
The Since the When you are getting Hope it is clear, but let me know if you need more info. |
That clarifies things indeed, thank you for the explanation. Will leave this as is then! |
Is your feature request related to a problem? Please describe.
Processing notification requests and cancellations can be time-consuming, particularly when there is a significant delay in waiting. For instance, when we transmit requests from a distant region to the app server, the response time is notably slow.
Describe the solution you'd like
To enhance efficiency, we should implement a feature that allows multiple requests and cancellations to be bundled into a single request. This solution will require modifications to be made to the Questionnaire app accordingly.
Describe alternatives you've considered
Priority
3
Difficulty
2
Additional context
The text was updated successfully, but these errors were encountered: