Live data from Hacker News

Ferron – A fast, memory-safe web server written in Rust

github.com

21–30 of 102 posts

Re: Ferron – A fast, memory-safe web server written in Rust

#23

Nice, does it support DTSL for webrtc over the same port? Nginx only have a patch for it ATM.

Thank you! Unfortunately, Ferron doesn't support DTLS, although it can be used as a WebSocket reverse proxy for signaling in WebRTC applications...

Re: Ferron – A fast, memory-safe web server written in Rust

#25
post #24

How much memory does it use? Is it suitable for memory-limited scenarios like a Raspberry Pi 1 with 256MB?

I am not exactly sure, but comparing Ferron 1.0.0-beta5 and Caddy 2.9.1 in a benchmark where HTTPS, HTTP/2 are enabled, and default Apache httpd page was served, Caddy used so much memory, that at 12,600 requests per second the system with 16 GB RAM ran out of memory, while Ferron didn't use that much memory, and benchmark succeeded up to 20,000 requests per second. Maybe it's a bug in Caddy?

Re: Ferron – A fast, memory-safe web server written in Rust

#26
This is a really good Caddy replacement. The configuration format Caddy uses sometimes feels oversimplified in that complex configurations are hard to read. My instincts tell me this could scale better without getting more verbose. I'm definitely considering a migration if this project matures.

Re: Ferron – A fast, memory-safe web server written in Rust

#27
post #24

How much memory does it use? Is it suitable for memory-limited scenarios like a Raspberry Pi 1 with 256MB?

Almost certainly given that pretty much all Rust webservers are, and this one is built on the same dependencies as others.

I run a few websites on fly.io VMs with 256mb using Rust servers that never actually exceed 64mb of usage.

Re: Ferron – A fast, memory-safe web server written in Rust

#28

This is a really good Caddy replacement. The configuration format Caddy uses sometimes feels oversimplified in that complex configurations are hard to read. My instincts tell me this could scale better without getting more verbose. I'm definitely considering a migration if this project matures.

Thank you!

Re: Ferron – A fast, memory-safe web server written in Rust

#29
post #15

Earlier quoted context omitted.

You’re comparing a new project to nginx. Obviously nginx will be faster maybe not across the board but generally it probably is. As a project matures it will optimize surely! nginx has 21 years of development under its belt.

By that reasoning Apache should be faster than nginx, but alas. https://pressable.com/blog/head-to-head-performance-comparis... I think drawing any conclusions in the absence of benchmarks is unwise.

What?, apache have mpm_event since many years ago, you don't need prefork process model except if you want use mod_php or something not thread safe.

Re: Ferron – A fast, memory-safe web server written in Rust

#30

The author of Ferron web server here. Thank you so much for submitting this, and thank you all for the support you have shown when I submitted the server on Hacker News.

Important part of caddy’s configuration are their defaults. For example TLS and automatic certificates are on by default. It covers the most useful use case by default.

Ferron is different.

Is that a choice or just something you didn’t work on yet?

Post reply on HN