Go has larger ecosystem of libraries for building web servers. You have FrankenPHP for running PHP, Lego for automatic TLS, etc.
For Rust there is `tokio-rustls-acme` crate (used by Ferron) for automatic TLS. While for PHP there is a `php` crate that depends on unsupported PHP version. Ferron uses FastCGI for communicating with PHP-FPM daemon instead.
However, Go uses a garbage collector, unlike Rust, which has a borrow checker to ensure memory safety.
Oh... For safety, it's recommended to check the installation script for suspicious commands.
Or you can just pull the image for the Ferron web server from Docker Hub.
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?
Hyper (HTTP library used by Ferron) has request header timeout of 30s by default if a timer is set. Ferron sets the timer for Hyper for request header timeout to work, thus mitigating Slowloris.
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.
I came across this SaaS boilerplate, and found that it uses Rust as a programming language, so I thought it might be interesting to Rust enthusiasts (aka Rustaceans), who want to build SaaS.