SOLVED

Sharepoint webhooks notification frequency

%3CLINGO-SUB%20id%3D%22lingo-sub-557309%22%20slang%3D%22en-US%22%3ESharepoint%20webhooks%20notification%20frequency%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-557309%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20wish%20to%20know%20what%20is%20the%20frequency%20of%20webhooks%20notification.%20When%20there%20is%20a%20change%20in%20a%20list%2C%20how%20long%20does%20it%20take%20for%20the%20notification%20to%20fire%3F%20I%20ask%20because%20I%20am%20using%20webhooks%2C%20and%20sometimes%20takes%205%20seconds%2C%20but%20sometimes%20it%20takes%201-5%20minutes%2C%20or%20only%20fires%20when%20i%20make%20another%20change.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMany%20thanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-557825%22%20slang%3D%22en-US%22%3ERe%3A%20Sharepoint%20webhooks%20notification%20frequency%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-557825%22%20slang%3D%22en-US%22%3EAFAIK%2C%3CBR%20%2F%3EThis%20frequency%20is%20not%20documented%20somewhere%20and%20notifications%20are%20supposed%20to%20fired%20almost%20inmediately%20so%20somehting%20seems%20to%20be%20wrong%20here%20if%20you%20are%20having%20situations%20where%20they%20are%20fired%20after%201-%20-%205%20minutes%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-558274%22%20slang%3D%22en-US%22%3ERe%3A%20Sharepoint%20webhooks%20notification%20frequency%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-558274%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20is%20expected%20behavior.%20Webhooks%20are%20not%20%22real%20time%22.%20When%20you%20make%20a%20change%20in%20the%20list%2C%20the%20event%20is%20put%20on%20a%20queue.%20The%20queue%20is%20read%20about%20every%201%20minute.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EImagine%20a%20scenario%20where%20you%20batch%20update%20100%20records.%20You%20wouldn't%20want%20100%20webhooks%20events%20to%20call%20your%20service.%20You'd%20want%201%20call%2C%20with%20the%20changeToken%20which%20then%20you%20could%20use%20to%20find%20all%20100%20changes%20that%20happened.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EIf%20you%20have%20a%20lot%20of%20changes%20in%20the%20system%2C%20the%20more%20messages%20on%20the%20queue%2C%20the%20longer%20it%20will%20take%20for%20the%20webhook%20call%20out%20to%20execute.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-558375%22%20slang%3D%22en-US%22%3ERe%3A%20Sharepoint%20webhooks%20notification%20frequency%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-558375%22%20slang%3D%22en-US%22%3EBut%20if%20there%20are%20100%20changes%20in%20the%20queue%20or%20only%201%2C%20it%20will%20take%20about%20the%20same%201%20minute%20for%20the%20webhook%20to%20fire%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-559079%22%20slang%3D%22en-US%22%3ERe%3A%20Sharepoint%20webhooks%20notification%20frequency%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-559079%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F339865%22%20target%3D%22_blank%22%3E%40Catalino%3C%2FA%3E%26nbsp%3B%20%26nbsp%3BA%20couple%20things%20at%20play.%20The%20number%20of%20changes%20in%20the%20system%2C%20current%20load%20on%20the%20system.%20I've%20seen%20webhooks%20fire%20quickly%20and%20I've%20seen%20them%20take%20minutes.%20As%20mentioned%2C%20it's%20not%20real-time%20and%20we%20shouldn't%20expect%20the%20webhooks%20to%20be%20real-time.%3CBR%20%2F%3E%3CBR%20%2F%3EWhat%20is%20important%20is%20making%20sure%20your%20endpoints%20are%20available%20to%20listen%20when%20the%20requests%20are%20being%20sent.%20e.g%2C%20making%20sure%20your%20service%20responds%20within%205%20seconds%20of%20receiving%20an%20event.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

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!

4 Replies
Highlighted
AFAIK,
This frequency is not documented somewhere and notifications are supposed to fired almost inmediately so somehting seems to be wrong here if you are having situations where they are fired after 1- - 5 minutes
Highlighted

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.

Highlighted
But if there are 100 changes in the queue or only 1, it will take about the same 1 minute for the webhook to fire?
Highlighted
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.