Consistent ~1000ms proxy latency across all services in project
fredgig
PROOP

5 months ago

Description

All services in my Railway project are experiencing consistently high TTFB (~900ms-1s), regardless of whether the request involves any backend processing. The latency appears to be in Railway's proxy/routing layer, not in our application code.

Evidence

1. Mostly static webapp (no DB, no backend logic)

```

curl -o /dev/null -w "TTFB: %{time_starttransfer}s\n" -s https://(obfuscated).com

TTFB: 0.946840s

TTFB: 0.910275s

TTFB: 1.048065s

TTFB: 1.001922s

TTFB: 0.594758s

```

2. API service (19-byte response)

```

curl timing breakdown for https://api.%28obfuscated%29.com:

DNS: 0.001s

Connect: 0.034s

TLS: 0.073s

TTFB: 0.911s ← ~838ms gap between TLS completion and first byte

Total: 0.912s

Size: 19 bytes

```

3. Control test — external services from the same machine/network

```

Google: TTFB 0.200s

httpbin: TTFB 0.329s

```

4. Not cold-start related

Latency is consistent across 5+ sequential rapid requests. Second and subsequent requests show no improvement.

5. Sentry confirms handlers are fast

Application-level tracing shows handler execution in low milliseconds. The delay is occurring before/after our application processes the request.

Key Details

- Proxy node:trolley.proxy.rlwy.net

- Custom domains:(obfuscated).com, api.(obfuscated).com

- Affected services: All services in the project (both NodeJS web apps and Go API)

- Pattern: The ~800ms gap consistently sits between TLS completion and TTFB, pointing to proxy-layer overhead

Request

Could you investigate whether there's a proxy routing issue affecting this project? If possible, could the project be migrated to a different proxy node?

Solved

4 Replies

fredgig
PROOP

5 months ago

Not as urgent as the other stuff going on please address much later if need be


sam-a
EMPLOYEE

5 months ago

We're aware of this issue - it's affecting multiple users and we have an internal ticket tracking it. The ~800-900ms gap between TLS completion and first byte that you're seeing matches the pattern we're investigating. We'll update you when there's progress on a fix.


Status changed to Awaiting User Response Railway 5 months ago


Railway
BOT

5 months ago

Hello!

We've escalated your issue to our engineering team.

We aim to provide an update within 1 business day.

Please reply to this thread if you have any questions!


5 months ago

You should be good here, as we have made a myriad of improvements to many aspects of our network over the past 48 hours, but please let us know if you are still seeing issues.


Status changed to Solved fredgig 4 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...