event triggers and send multiple requests , how to avoid and limit requests to 1
SOLVE
when a event is triggered , my webhook is sending multiple requests to my api until a response is received . Give a solution to either make the request as 1 or await time for the request as 5 minutes.
event triggers and send multiple requests , how to avoid and limit requests to 1
SOLVE
Hey @ztesting, thank you for posting in our Community!
To limit your webhook to sending a single request when an event is triggered, you can implement idempotency on your API. This ensures that even if multiple requests are sent, only one will be processed. Additionally, you can add a delay or retry mechanism in your webhook configuration, setting a timeout of 5 minutes before resending the request.
If your webhook tool doesn't support this natively, you might need to handle it on the API side with a custom solution.
event triggers and send multiple requests , how to avoid and limit requests to 1
SOLVE
Hey @ztesting, thank you for posting in our Community!
To limit your webhook to sending a single request when an event is triggered, you can implement idempotency on your API. This ensures that even if multiple requests are sent, only one will be processed. Additionally, you can add a delay or retry mechanism in your webhook configuration, setting a timeout of 5 minutes before resending the request.
If your webhook tool doesn't support this natively, you might need to handle it on the API side with a custom solution.