Hi Temporal experts,
I’m seeking some guidance on “schedule-to-start” latency in my Temporal setup. I’m running experiments with workflows that only involve local activities (similar to the Eager Workflows use case). However, even with just a single workflow at a time, I’m observing a schedule-to-start latency around 200ms, and sync-match-latency around 100ms.
Here’s some additional context:
- Temporal Version: 1.6.3 (managed, on-premises)
- Deployment: Local Linux machines (client code and server on same machines)
- Persistence: PostgreSQL
- SDK Metrics: Persistence layer average latency ~20ms
- PostgreSQL Query Analytics: Individual insert operations take ~3ms
My questions are:
- Why might the schedule-to-start latency be so high for a single workflow with local activities (considering the low persistence layer latency)?
- Could you explain how the SDK persistence layer latency metrics are calculated?
Any insights or suggestions to improve the performance would be greatly appreciated.
Thanks!