by buffrr · 4y ago · 0 comments
I suspect this would impact latency. Any benchmarks done to compare Cloudflare workers, Deno and fly.io for this specific application (i don't think ping alone is fair)? I'm guessing fly.io is more suitable here. Also, DoH clients generally maintain a pool of connections to the DoH server i'm not completely sure how this is handled with something like Cloudflare workers.
Why is that?
In fact, Workers can usually spin up an isolate in parallel with the TLS handshake.[1] After receiving the SNI packet containing a hostname, it'll go start up the isolate for that host, if it isn't running already. TLS typically needs another round trip from there to do a key exchange before application data starts flowing, by that time the isolate is ready to serve. In that case, there is no added latency.
(I am the tech lead for Workers.)
[0] https://blog.cloudflare.com/cloud-computing-without-containe...
[1] https://blog.cloudflare.com/eliminating-cold-starts-with-clo...
https://news.ycombinator.com/item?id=32289979
I hope to learn if anyone else has been using Isolates to great, or any, effect.