⚡ Improved Sync Webhook Latency on the Cloud - Part 2

Hi Everyone,

One of my first tasks was improving webhook sync latency.

:mag: What was happening:

  • Webhooks were slow because execution needed two hops through queues to start execution.
  • Flows were loaded from the database every time, causing delays.

:wrench: What we did:

  • Optimized execution in a single step (no extra hops).
  • Cached flows in memory to avoid loading them from the database every time.

:white_check_mark: Result:

  • Cloud (SANDBOXED): latency dropped from ~4s ➔ 1–2s.
  • Self-Hosted (SANDBOX_CODE_ONLY): latency dropped from ~1100ms ➔ 100–200ms.

Now, /sync webhooks are much faster and more stable! :rocket:

Thank you! :tada:

6 Likes