Hi Everyone,
One of my first tasks was improving webhook sync latency.
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.
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.
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!
Thank you!