ROFL with a LOL: rewriting an NGINX module in Rust
- NGINX is a popular reverse proxy and HTTP cache. - Cloudflare uses NGINX for several features such as rate limiting, WAF rules, and WebSockets proxying. - ROFL (Rate-Optimized Functional Language) is an application layer language designed by the Cloudflare team to handle HTML rewriting tasks in a memory-safe manner. - The main motivation for building ROFL was that Rust was seen as a better choice than LuaJIT due to its safety and speed. - ROFL has been tested with real customer traffic, showing promising results. REF: https://blog.cloudflare.com/rofl-nginx-rust/```
Company
Cloudflare
Date published
Feb. 24, 2023
Author(s)
Sam Howson
Word count
4030
Language
English
Hacker News points
23