HNHacker News
TopNewBestAskShowJobs

dorianniemiec

464 karma · joined May 2, 2024

Author of Ferron - a fast, modern web server built for production debugging. An #ActuallyAutistic person.

https://dorianniemiecsvrjs.github.io/

submissionscomments
dorianniemiec··on Ferron – A fast, memory-safe web server written in Rust
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.
dorianniemiec··on Ferron – A fast, memory-safe web server written in Rust
Thank you! I have visited the post from the link, and added the dark mode logo.
dorianniemiec··on Ferron – A fast, memory-safe web server written in Rust
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.
dorianniemiec··on Ferron – A fast, memory-safe web server written in Rust
By the way, Ferron web server also uses Tokio and Hyper.
dorianniemiec··on Ferron – A fast, memory-safe web server written in Rust
So how can I put a logo with bright text in dark mode and dark text in light mode on the read-me for a GitHub repository?
dorianniemiec··on Ferron – A fast, memory-safe web server written in Rust
I also implemented timeouts for response processing (including reading the request body from the client), to protect against Slow HTTP POST attacks.
dorianniemiec··on Ferron – A fast, memory-safe web server written in Rust
Why do you think that FAQ makes me come off as patronizing?
dorianniemiec··on Ferron – A fast, memory-safe web server written in Rust
Well, Ferron has HTTP/2 and OCSP stapling enabled by default when HTTPS is enabled.
dorianniemiec··on Ferron – A fast, memory-safe web server written in Rust
Thank you!
dorianniemiec··on Ferron – A fast, memory-safe web server written in Rust
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?
dorianniemiec··on Ferron – A fast, memory-safe web server written in Rust
Thank you! Unfortunately, Ferron doesn't support DTLS, although it can be used as a WebSocket reverse proxy for signaling in WebRTC applications...
dorianniemiec··on Ferron – A fast, memory-safe web server written in Rust
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.
dorianniemiec··on Ferron – A fast, memory-safe web server written in Rust
Oh... Good to know!
dorianniemiec··on Ferron – A fast, memory-safe web server written in Rust
Thank you!
dorianniemiec··on Ferron – A fast, memory-safe web server written in Rust
Thank you! I think that my web server is indeed similar to a popular Caddy web server.
dorianniemiec··on Ferron – A fast, memory-safe web server written in Rust
Static Web Server is also old enough to use Hyper 0.14.x instead of Hyper 1.x used by Ferron. I wish you good luck using Ferron then!
dorianniemiec··on Ferron – A fast, memory-safe web server written in Rust
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.
dorianniemiec··on Ferron – A fast, memory-safe web server written in Rust
Maybe because of marketing reasons or because I am biased in the comparisons?
dorianniemiec··on RustSaaS – Launch your startup in days with Rust
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.
dorianniemiec··on You might not need Redis
I have found that for websites that use Joomla, file cache is faster than Redis cache, at least for me.
dorianniemiec··on Show HN: I built a memory-safe web server in Rust
I have updated the web server performance benchmark chart (there's now Ferron 1.0.0-beta1 instead of Project Karpacz 0.3.0), you can check it out.
dorianniemiec··on Show HN: I built a memory-safe web server in Rust
The web server that I am building has a simple in-memory cache module, that can be optionally enabled. It supports "Cache-Control" and "Vary" headers.
dorianniemiec··on Show HN: I built a memory-safe web server in Rust
The web server that I am building uses YAML-format configuration.
dorianniemiec··on Show HN: I built a memory-safe web server in Rust
When developing my web server, I spent some time "fighting the borrow checker".
dorianniemiec··on Show HN: I built a memory-safe web server in Rust
Thank you!
dorianniemiec··on Show HN: I built a memory-safe web server in Rust
Actually, I spent some time "fighting the borrow checker" when I developed my web server.
dorianniemiec··on Show HN: I built a memory-safe web server in Rust
It's already in the FAQ section.
dorianniemiec··on Show HN: I built a memory-safe web server in Rust
I haven't tested it for Slowloris yet.
dorianniemiec··on Show HN: I built a memory-safe web server in Rust
It includes an older, alpha version of my web server (Project Karpacz 0.3.0). I will update the benchmark later.
dorianniemiec··on Show HN: I built a memory-safe web server in Rust
Thank you for the feedback!
← PreviousPage 3 of 4Next →