5 ms·
The thing we do that's (maybe) interesting is run processes all over the world. It's helpful for liveview because it minimizes latency to end users. Here's an e
by mrkurt 6y ago
The thing we do that's (maybe) interesting is run processes all over the world. It's helpful for liveview because it minimizes latency to end users. Here's an example Liveview cluster running in 17 regions, if you scroll down you'll see the round trip time to the server you're connected to: https://liveview-counter.fly.dev/ https://liveview-counter.fly.dev/
Liveview is crazy powerful if you can keep the latency down.
- AlchemistCamp 6y agoLiveView should already have less latency than an app doing traditional AJAX requests, since an open web socket is a lot better than making a call to axios! The less latency the better, though, of course. I'm seeing roughly 80ms, which is very good.
- watermelon0 6y agoHTTP with keep-alive supports keeping around idle connections, which can be used to make subsequent AJAX calls. HTTP/2 has this by default, and allows multiplexing multiple requests on a single connection, so even making multiple parallel calls won't require establishing new connections. Basically, performance between AJAX and web sockets should be comparable in most cases.
- msmithstubbs 6y agoNice demo! How is the server chosen? I'm seeing ~200ms latency. I'm connected to LAX which I don't think would be shortest round trip.
- mrkurt 6y agoWhere are you connecting from, out of curiosity? 200ms is poor! Fly apps get anycast IPs, so it's basically bgp getting you to our "nearest" edge proxy, then we connect you to the closest vm from there. https://debug.fly.dev https://debug.fly.dev will show you which region you hit first (the fly-region request header). --edit-- I snooped on your HN profile and found Australia. We don't have an instance of this app up in AU, but we could. You're likely connecting to us in Sydney, and LAX is most likely the fastest over our backhaul from there.
- avinassh 6y agoI am connecting from India and my latency is about ~180ms
- mrkurt 6y agoIn a couple of months we'll have instances in Chennai!
- Moru 6y agoI'm connecting from Sweden and got about 40 ms. But now and then it peaks to 4000-8000 ms while my ping within the city stays at 2 ms.
- mrkurt 6y agoThose spikes are hilarious, they're probably from a liveview DoS. People are fond of using the debug console to "click" hundreds of times per second and there's no rate limiting in the app.
- MawKKe 6y agoFrom Finland: Through LTE I get served via 'fra' with ~60ms (as one might expect). However if I switch to Wifi I get 'hkg' with ~260ms?? Not exactly next-door :)
- iudqnolq 6y agoFyi at least on mobile the buttons stay focused after tap, making it look (incorrectly) like the ack is lagging.
- matthewcford 6y agoI like that you can mount a volume to a region, render can only do a single instance.
- brightball 6y agoThat is extremely interesting. I've never seen a cloud provider that prominently advertised Anycast IP addresses.