This repository codebase is responsible for enqueuing webhooks calls coming from RapidPro/KooKoo/other source to Cloud task.
Currently, there are issues with the number of inbound requests vs the system capabilities of handling those requests. So we are considering queues for handling the load.
- When we will receive a webhook call, instead of calling the application database, we will queue the task to the cloud function.
- Then the cloud function will trigger limited cloud function with a retry logic.
- This will push limited number of requests to the webhook handler
- In case of a failed request, it will retry to push the request. Assuring that all the data are recorded.