Improving latency with Eager Workflow Start in Temporal
Apr 29, 2024

Summary
This post introduces Eager Workflow Start (EWS), an experimental feature designed to reduce workflow start latency. It details the mechanism by which EWS bypasses server matching operations by allowing a local worker to directly receive the first workflow task. Performance improvements are quantified with p50 and p99 latency reductions of 43% and 40% respectively in test scenarios. Limitations include the requirement for co-located starters and workers sharing a client connection, and the current lack of support for worker versioning with build IDs. A 'Hello World' example in Go demonstrates how to implement EWS by starting the worker in non-blocking mode and setting the `EnableEagerStart` flag.