May 10 2019 01:42 AM
Hi all.
I wish to know what is the frequency of webhooks notification. When there is a change in a list, how long does it take for the notification to fire? I ask because I am using webhooks, and sometimes takes 5 seconds, but sometimes it takes 1-5 minutes, or only fires when i make another change.
Many thanks!
May 10 2019 04:18 AM
May 10 2019 06:26 AM - edited May 10 2019 06:29 AM
May 10 2019 06:26 AM - edited May 10 2019 06:29 AM
This is expected behavior. Webhooks are not "real time". When you make a change in the list, the event is put on a queue. The queue is read about every 1 minute.
Imagine a scenario where you batch update 100 records. You wouldn't want 100 webhooks events to call your service. You'd want 1 call, with the changeToken which then you could use to find all 100 changes that happened.
If you have a lot of changes in the system, the more messages on the queue, the longer it will take for the webhook call out to execute.
May 10 2019 06:49 AM
May 10 2019 09:22 AM - edited May 10 2019 09:29 AM
Solution@Catalino A couple things at play. The number of changes in the system, current load on the system. I've seen webhooks fire quickly and I've seen them take minutes. As mentioned, it's not real-time and we shouldn't expect the webhooks to be real-time.
What is important is making sure your endpoints are available to listen when the requests are being sent. e.g, making sure your service responds within 5 seconds of receiving an event.