R
Railway•13mo ago
daemon

intra-pod latency

What is the expected latency between two services running on Railway? My expectation within the same cloud / AZ is probably 2-3ms (attributable to Envoy / other k8s overhead). Do those numbers look right to you? It certainly feels significantly higher. Will private networking bring this down? I assume that right now connection is over public internet, if we are behind a VPC, that should cut down on some SSL etc?
14 Replies
Percy
Percy•13mo ago
Project ID: a52f72a9-aa58-47ed-a28d-64a3661edb93
daemon
daemon•13mo ago
a52f72a9-aa58-47ed-a28d-64a3661edb93
ThallesComH
ThallesComH•13mo ago
i don't know about the latency over the internet. but for latency in private networking, brody made a tool to measure that https://utilities.up.railway.app/ping?host=hello-world.railway.internal
Brody
Brody•13mo ago
I was gonna link that myself, but you beat me to it, thank you!! and for latency to a public service, theres this https://utilities.up.railway.app/ping?host=hello-world-public.up.railway.app
daemon
daemon•13mo ago
ack - looks like 7-8 ms via that utility over public internet
Brody
Brody•13mo ago
after caching, yes
daemon
daemon•13mo ago
wdym after caching?
Brody
Brody•13mo ago
after the dns response is cached
daemon
daemon•13mo ago
ah maybe ours is just being kept hot, looks like no cold start
Brody
Brody•13mo ago
not how it works railway has no "cold start"
daemon
daemon•13mo ago
im just confused by the dns cache then
Brody
Brody•13mo ago
no worries, you can always google terms you dont understand 🙂 these tests may be more what youre looking for heres an http get request to a service through the internal private network https://utilities.up.railway.app/request-test?url=http://hello-world.railway.internal:3000&method=get this is also an http get request, to the same service through its public address https://utilities.up.railway.app/request-test?url=https://hello-world-public.up.railway.app&method=get these requests do not use any dns caching and do not keep the connections alive
daemon
daemon•13mo ago
Thank you - this was actually quite helpful to show the proper url: http (not https, no tls handshake!) and referencing a specific port. Private networking is super helpful for us, thank you!
Brody
Brody•13mo ago
no problem! that's what the utility is for 🙂