6 days ago
custom domain api.rutadigitalcrm.com routing at 15-20s while the raw .up.railway.app responds in 1s — same service.
1 Replies
6 days ago
This thread has been opened as a bounty so the community can help solve it.
Status changed to Open Railway • 6 days ago
5 days ago
Since the .up.railway.app endpoint responds in ~1 second but the custom domain takes 15–20 seconds, it suggests the application itself is probably not the bottleneck. I'd focus on the path that's unique to the custom domain.
A few things to check:
-
Measure where the delay occurs using:
curl -v https://api.rutadigitalcrm.comor
curl -w "DNS: %{time_namelookup}\nTCP: %{time_connect}\nTLS: %{time_appconnect}\nTTFB: %{time_starttransfer}\nTotal: %{time_total}\n" -o /dev/null -s https://api.rutadigitalcrm.comThis will show whether the delay is in DNS, TCP, TLS, or waiting for the first byte.
-
Compare the results with the
.up.railway.appURL to identify which stage differs. -
If you're using Cloudflare or another reverse proxy, temporarily disable the proxy (DNS-only) and test again. If the latency disappears, the issue is likely in the proxy path rather than Railway.
-
Test IPv4 vs IPv6 separately:
curl -4 https://api.rutadigitalcrm.com curl -6 https://api.rutadigitalcrm.comA large difference may indicate an IPv6 routing issue.
-
Verify the custom domain resolves only to the expected Railway endpoint and that there aren't stale or duplicate DNS records.
Knowing which phase (DNS, TCP, TLS, or TTFB) accounts for the extra 15–20 seconds will make it much easier to identify the root cause.