Features

Increase webhook timeout

2y agoPending

Timeout on webhook is 10 seconds, but when using infrastructure that scales to 0, spin up times can be 40-60 seconds. Quick solution is to increase the de-scale cooldown time to c. 15 minutes (ensuring we are active when the next attempt comes in), but this costs money. Instead, it would be nice to simply increase the timeout.

6 comments

  1. Hi James Jackson, we believe the 10-second timeout is already long enough. If the processing takes longer, it's advisable to call another service internally. This enables the endpoint to swiftly send a successful status code to Tally. The separate service can then handle the processing of the submission without delaying the webhook response.

    1. Filip Minev This isn't strictly about the 10 second timeout or long processing times. I agree that good practice here is to respond to the webhook immediately.

      This is about your customers on cold-start scale-to-zero infrastructure (such as Azure Container Apps) being unable to natively use your webhook integration without either:

      - Spinning up a new infrastructure component (like a function to handle the request)

      - Increasing the timeout on the scale-down operations beyond the default of 300 seconds. This is because the first webhook requet will hit the load balancer and timeout whilst the container is spawning, then by default the container will wait for 300 seconds and de-spawn. The next request from the webhook comes a few minutes later, repeating the whole drama.

      Both of these options cost your customers money and increase the complexity of what should be a simple integration.

      You cold solve this simply by making the next webhook request come quicker, e.g., 60 seconds after the first failed attempt.

      Please give this some consideration.

    2. James Jackson I believe it's not a good idea to use cold start infrastructure to handle real-time notifications. It would be best if to have this service online at all times.

      Alternatively, you can look into using a proxy: Tally -> Make/Zapier -> then call your own backend.

      Or, you can use another direct integration or our API from which you can poll the data on a schedule.

    3. Filip Minev I understand your point, I am just saying a simple change to your process would mean customers wouldn't have to incur additional fees or services to setup the infrastructure necessary to handle the Tally integration. Not all customers (myself included) have "real-time" concerns.

    4. Filip Minev Okay to be fair, the API wasn't public when I commented. But a scheduled poll has the same issue in that it requires new infrastructure.

  2. Alternatively, if the second attempt could happen quicker in the 2-3 minute range instead of 10 mins that would also be perfect :)