Re:Serverless DNS: Self-hosted DNS resolver at the edge
by mrbungie on Saturday July 30, 2022 @11:19AM
(#32287470)
I guess parent is refering to cold starts. With enough requests/sec and a good scaling mechanism it shouldn't be a problem though.
Re:Serverless DNS: Self-hosted DNS resolver at the edge
by geysersam on Saturday July 30, 2022 @11:46AM
(#32287698)
Cold starts for Deno deploy and Cloudflare workers are much shorter than something like AWS lambda or Google functions.
Re:Serverless DNS: Self-hosted DNS resolver at the edge
by endorphine on Saturday July 30, 2022 @01:29PM
(#32288570)
That doesn't invalidate the cold start argument though.
Re:Serverless DNS: Self-hosted DNS resolver at the edge
by DeWilde on Saturday July 30, 2022 @11:16AM
(#32287436)
Spinning up a process takes some time, adds up across many requests.
Re:Serverless DNS: Self-hosted DNS resolver at the edge
by kentonv on Saturday July 30, 2022 @12:00PM
(#32287798)
Cloudflare Workers uses isolates, not processes.[0] They start much faster, typically in single-digit milliseconds.
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...
Re:Serverless DNS: Self-hosted DNS resolver at the edge
by riedel on Saturday July 30, 2022 @02:58PM
(#32289335)
Thanks for the article link. It is quite interesting to me that is only possible because we all need to trust the V8 sandboxing anyways. It makes sense since it should not be compromised on the other end of the connection either. However, one should still probably be aware that any exploit would be probably much more practical than e.g. a spectre attack.
Re:Serverless DNS: Self-hosted DNS resolver at the edge
by metadat on Saturday July 30, 2022 @04:29PM
(#32290004)
Very interesting, thanks for sharing this @kentonv. After four years it might warrant a fresh follow-up conversation, so I submitted:
https://news.ycombinator.com/item?id=32289979
I hope to learn if anyone else has been using Isolates to great, or any, effect.
Re:Serverless DNS: Self-hosted DNS resolver at the edge
by happyopossum on Saturday July 30, 2022 @12:04PM
(#32287830)
That is crazy cool - thanks for sharing!
Re:Serverless DNS: Self-hosted DNS resolver at the edge
by immrammc on Saturday July 30, 2022 @08:55PM
(#32291991)
Wow hadn’t heard about isolates at all, really cool! thanks for sharing!
Re:Serverless DNS: Self-hosted DNS resolver at the edge
by DeWilde on Saturday July 30, 2022 @01:47PM
(#32288752)
Cool, thanks for pointing this out :).
Re:Serverless DNS: Self-hosted DNS resolver at the edge
by humbleharbinger on Saturday July 30, 2022 @12:13PM
(#32287904)
Any tips on getting a job at cloud flare as a new grad; it's one of my dream companies.
Re:Serverless DNS: Self-hosted DNS resolver at the edge
by aaaaaaaaaaab on Saturday July 30, 2022 @12:41PM
(#32288136)
Re:Serverless DNS: Self-hosted DNS resolver at the edge
by alexnewman on Saturday July 30, 2022 @12:45PM
(#32288174)
Processes, threads , isolates who cares? It’s all so small right?
Why is that?