R
Railwayβ€’2y 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β€’2y ago
Project ID: a52f72a9-aa58-47ed-a28d-64a3661edb93
daemon
daemonOPβ€’2y ago
a52f72a9-aa58-47ed-a28d-64a3661edb93
ThallesComH
ThallesComHβ€’2y 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β€’2y 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
daemonOPβ€’2y ago
ack - looks like 7-8 ms via that utility over public internet
Brody
Brodyβ€’2y ago
after caching, yes
daemon
daemonOPβ€’2y ago
wdym after caching?
Brody
Brodyβ€’2y ago
after the dns response is cached
daemon
daemonOPβ€’2y ago
ah maybe ours is just being kept hot, looks like no cold start
Brody
Brodyβ€’2y ago
not how it works railway has no "cold start"
daemon
daemonOPβ€’2y ago
im just confused by the dns cache then
Brody
Brodyβ€’2y 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
daemonOPβ€’2y 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β€’2y ago
no problem! that's what the utility is for πŸ™‚
Want results from more Discord servers?
Add your server