Home / Companies / Cloudflare / Blog / Post Details
Content Deep Dive

ROFL with a LOL: rewriting an NGINX module in Rust

Blog post from Cloudflare

Post Details
Company
Date Published
Author
Sam Howson
Word Count
4,030
Language
English
Hacker News Points
23
Summary

- 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/```