• Ethan Adshade
  • 0 Points
  • Member since 2018

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
  • 0
We have an application that is making use of Apex Triggers and HTTP Callouts to notify our web service when an action happens in Salesforce.

For example:

1. An admin in Salesforce changes a `School` object
2. The Apex Trigger for the `School` object makes an HTTP Callout to our website

During testing the HTTP Callout happened immediately after the object was changed, usually in under 1 second. However, recently we are noticing that it is taking anywhere from 10 seconds to 200 seconds for the HTTP Callout to happen, e.g:

1. An admin in Salesforce changes a `School` object
2. ...100 seconds pass...
3. The HTTP Callout is made

Why is this? The Apex Trigger documentation does not mention any sort of delay in executing the HTTP Callout, and the delay is inconsistent: sometimes it is a few seconds and sometimes it is a few minutes. Our longest documented instance is ~200 seconds from the action happening to the HTTP Callout being triggered.