Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

And they typically run in under 1ms and global deploys take less than 30s and it's native V8.


Are Cloudflare Workers implemented as an NGINX module like OpenResty?


Nope. It's a new stand-alone HTTP server. This lets us implement a tighter sandbox, since all the code is purpose-built for running inside it.


> It's a new stand-alone HTTP server.

Are you going to publish more info about that HTTP server? Like the technology used to write it.


Yeah, I'll probably write that up at some point.

For now, here's the source code for the HTTP implementation. :)

https://github.com/capnproto/capnproto/blob/master/c++/src/k...

https://github.com/capnproto/capnproto/blob/master/c++/src/k...

That's from the KJ C++ toolkit library, which is part of the Cap'n Proto project, which is my own work that predates my time at Cloudflare. We're using this in the Workers engine and updating the code as needed.

Yes, I know, NIH syndrome. But it has been pretty handy to be able to jump in and make changes to the underlying HTTP code whenever we need to.

I hope to spend some time writing better docs for KJ, then write a blog post all about it.

The only major dependencies of the core Workers runtime are V8, KJ, and BoringSSL.


Thanks!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: