What changed
For developers connecting to our API from outside the United States, we realized the initial handshake with our servers was adding significant latency to every query. Requests to Captain’s API now connect to a local server near you, traveling over a private network backbone to reach us. This bypasses multiple long-distance round trips during the initial handshake.
Up to 39% lower latency on international queries.
To unlock these gains, we mapped out the journey of international customer queries. We built an edge routing mechanism that works seamlessly with the hostnames and configurations our customers already use. The improvement was immediate, particularly for 'cold' connections, which is how most agent-based tool calls interact with Captain.
We measured these gains using median response times from 100 samples per major international geography, using a fresh connection for every request to simulate real-world usage.

