Are webhooks synchronous? | Community
Skip to main content
Grégoire_Miche2
Level 10
December 3, 2015
Solved

Are webhooks synchronous?

  • December 3, 2015
  • 5 replies
  • 5862 views

When calling a webhook in a smart campaign flow, is Marketo waiting for the webhook response before monving to the next flow step or is it moving to the next flow step immediately after calling the webhook, without waiting ?

-Greg

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

AFAIK webhook execution is synchronous.  But that may not be your underlying question, because a data value update as the result of a webhook is asynchronous (it will happen outside of the rest of the flow).

5 replies

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
December 3, 2015

AFAIK webhook execution is synchronous.  But that may not be your underlying question, because a data value update as the result of a webhook is asynchronous (it will happen outside of the rest of the flow).

Jep_Castelein2
Level 10
December 7, 2015

If you use the webhook's Response Mapping to save data back to a field in Marketo, that will by synchronous.

Example: In my test system I have a webhook that fixes the case for first name and last name, so if someone fills out a form with "joe" as first name, the webhook will write back "Joe" to the first name field. As a test, I put a 2nd flow step immediately after the Webhook to copy {{lead.First Name}} to another field. That Change Data Value does indeed copy "Joe" to the other field (not "joe"), so the webhook data value change has been processed synchronously.

December 7, 2015

Will just adding a delay of 2 minutes after web hook not be sufficient?

Direct Data field updates done by the webhook should have been done by that

time?

Or there is something I am missing to consider?

Rajesh

Grégoire_Miche2
Level 10
December 3, 2015

Thx Sanford,

Yes, my question was exactly about the data value update as a result of the webhook.

-Greg

SanfordWhiteman
Level 10
December 3, 2015

Yeah, it's annoying.  But it's consistent with other contexts in which we insert/update.

Grégoire_Miche2
Level 10
December 3, 2015

So here is the idea :

-Greg

Kenny_Elkington
Adobe Employee
Adobe Employee
December 7, 2015

There are very good reasons why the data updates are not made synchronously.  It's not possible to generalize the response time of an arbitrary server, so the execution time of a given webhook is unpredictable, and can cause enormous campaign queue backlogs if we made the data value changes synchronous.  The best alternative would be either to use the Webhook is called trigger, or a Data Value Changes trigger with a source type of Webhook.

SanfordWhiteman
Level 10
December 7, 2015

So I'm right!

Grégoire_Miche2
Level 10
December 29, 2015

Another example where synchronous update is required : Tracking the actions of non-leads 

-Greg