4 ms·
Crates.io uses Rust as a backend, Ember on the front. It uses about 35MB of resident memory, and (other than some weird DNS issues that aren't the server's faul
by steveklabnik 11y ago
Crates.io uses Rust as a backend, Ember on the front. It uses about 35MB of resident memory, and (other than some weird DNS issues that aren't the server's fault) is just super rock solid. (It doesn't use Iron, though.)
I'm still not sure the application tier isn't best served by something that's easier to prototype in, but if you already know Rust, the web stuff is shaping up pretty nicely.
We also got Hyper, Iron, and Nickel entries into the Techempower benchmarks, I'm really interested in seeing the eventual results.
- viraptor 11y agoJust curious - what are you using on the backend? From-scratch rust code?
- steveklabnik 11y agohttps://github.com/rust-lang/crates.io https://github.com/rust-lang/crates.io It uses 'conduit', which is a web framework that's basically only used by crates.io, as far as I know.
- jamwt 11y agoWe use conduit at Dropbox as well, but mostly for PEP 333 type reasons ("universal" request/response types and a pluggable coupling layer between handlers and servers.)
- steveklabnik 11y agoAh, neat! Thanks for filling me in. I almost never hear people talking about it.
- Jweb_Guru 11y agoBased on my experiences thus far, I don't think Iron or Hyper will do very well in Techempower. A framework based on mio can handle far more connections. But let's wait and see.
- steveklabnik 11y agoThere's ongoing work to get Hyper and mio to play nicely together.
- Jweb_Guru 11y agoLacking an event loop is not the biggest problem. Both libraries have a lot of allocation and other abstractions that get in the way of performance. Mio allows you to work with the sockets directly and does not allocate (and its APIs are designed to be usable without allocating), making things much easier to reason about.