3 ms·
AWS has written parts of major services (EC2, Lambda, S3, etc) in Rust.
by gamegoblin 3y ago
AWS has written parts of major services (EC2, Lambda, S3, etc) in Rust.
- nicce 3y agoThe first additional language support for Linux Kernel was Rust on top of C. Microsoft is rewriting their core kernel parts in Rust. Asahi Linux drivers are written in Rust. All new critical performance stuff in Cloudflare is written in Rust. List goes on… Edit: Many instead of all new from Cloudflare..
- jgrahamc 3y agoAll new critical performance stuff in Cloudflare is written in Rust. That's an exaggeration. Yes, we use Rust a lot and in performance critical areas but it's definitely not "all new critical performance stuff".
- nequo 3y agoWhat other language or languages do you use at Cloudflare for new performance critical stuff?
- yencabulator 3y agoCloudflare Workers is C++. I would assume that a lot of the related things (KV, Durable Objects, etc) too. https://github.com/cloudflare/workerd https://github.com/cloudflare/workerd
- kentonv 3y agoWorkers KV is actually largely implemented as a Worker, in TypeScript. :) Think of `workerd` as the "kernel" of our "cloud operating system". We try to avoid putting things in the kernel if we can. Features like Workers KV, R2, Queues, D1, etc. are generally built as "userspace" services, that is, they run as Workers. Durable Objects is a bit special, it's inherently something that needs to be in the core runtime, and which many of these other services build on top of. FWIW, if I were starting over I'd probably write the runtime in Rust, but it wasn't quite ready yet when we started six years ago. (I'm the tech lead for Workers.)