By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: Rust Rewrite Enables Cloudflare to Boost CDN Performance and Enhance Security
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > News > Rust Rewrite Enables Cloudflare to Boost CDN Performance and Enhance Security
News

Rust Rewrite Enables Cloudflare to Boost CDN Performance and Enhance Security

News Room
Last updated: 2025/10/28 at 5:07 PM
News Room Published 28 October 2025
Share
SHARE

By adopting Rust for one of its core subsystems, Cloudflare succeeded in reducing response time by 10 ms and boosting performance by 25%. Additionally, the company emphasized that Rust made their system more secure and reduced development time.

On the heels of its successful migration to Rust for the Pingora subsystem, Cloudflare’s engineers have rewritten from scratch one of the company’s oldest and most critical components, FL, the “brain of Cloudflare”:

FL is the brain of Cloudflare. Once a request reaches FL, we then run the various security and performance features in our network. It applies each customer’s unique configuration and settings, from enforcing WAF rules and DDoS protection to routing traffic to the Developer Platform and R2 [Cloudflare’s object store, EN].

Cloudflare’s architects decided to base FL2 on Oxy, their own internal framework for building proxies, which also includes support for monitoring, soft reloads, and dynamic configuration loading and swapping.

In particular, Oxy’s built-in mechanism for graceful restarts is a critical feature for a proxy, since terminating a process would otherwise break all active connections. To prevent this, when an Oxy instance needs to be terminated, it stops accepting new connections but continues serving existing ones until they end naturally.

One critical hurdle for Cloudflare’s architects was how to replace a running system that had underpinnes 15 years of Cloudflare products and was still evolving. To prevent their teams from having to implement each new feature twice, once for the LuaJIT-based FL and once for the new Rust-based FL2, they created a layer inside of FL which allowed new modules implemented in Rust for FL2 to run seamlessly.

Instead of maintaining a parallel implementation, teams could implement their logic in Rust, and replace their old Lua logic with that, without waiting for the full replacement of the old system.

To properly handle such a migration, Cloudflare’s architects also defined a clear testing and rollout strategy. For testing, they used Flamingo, a system capable of running thousands of full end-to-end test requests concurrently against both FL1 and FL2. Each change is rolled out gradually, and at each stage it is fully tested against increasing traffic and benchmarked to make sure performance and resource usage remain acceptable.

Another key mechanism was FL2 ability to pass any request it could not handle to FL1. This fallback mechanism was essential for gradually increasing FL2 usage without compromising the overall stability of Cloudflare services. During the rollout, as FL2 matured, it handled a growing proportion of traffic, while the amount of traffic falling back to FL1 decreased correspondingly.

The main advantage of building FL2, say Cloudflare architects, is the performance gain it delivers. This can be traced back to two main factors: the fact that FL2 was entirely written in a high-performance language like Rust, rather than using a mix of C, Rust, and Lua code. Additionally, FL1 had to spend quite some time to convert data representation from one language to another. As a result, FL2 requires only half the CPU of FL1 and less than half the memory.

As a final note, FL2 also benefits from Rust compile-time security guarantees, reinforced by strong linting and checking rules, as well as strict coding standards, testing and review processes. This has led to a significant reduction in crashes, most of them due to hardware failures.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article China’s Waymo rival Pony.ai slashes self-driving stack cost by 70% · TechNode
Next Article Amazon layoffs reaction: ‘Thought I was a top performer but guess I’m expendable’
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

SUSE Linux Enterprise 16 Announced: “Enterprise Linux That Integrates Agentic AI”
Computing
Inside Duolingo’s FinOps Journey: Turning Cloud Spend into Engineering Insight
News
The Stuff Gadget Awards 2023: Flagship phone of the year | Stuff
Gadget
Darktrace to expand to Saudi Arabia in Middle East growth push – UKTN
News

You Might also Like

News

Inside Duolingo’s FinOps Journey: Turning Cloud Spend into Engineering Insight

4 Min Read
News

Darktrace to expand to Saudi Arabia in Middle East growth push – UKTN

2 Min Read
News

Why does condensation occur between glass panels — and how to fix it

5 Min Read
News

The Best Smart Water Leak Detectors We’ve Tested for 2025

15 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?