/plushcap/analysis/cloudflare/rust-nginx-module

ROFL with a LOL: rewriting an NGINX module in Rust

What's this blog post about?

- 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

Hacker News points
23

Language
English


By Matt Makai. 2021-2024.