Business solutions

Why companies are rewriting software in Rust, and what it means for your business

Server bills are rising, and a rewrite costs money too. See how to test Rust on one service and estimate how long it might take to pay back.

Summary

  • Cloudflare and Discord adopted Rust in parts of their systems with a specific resource or latency problem.
  • At the same traffic load, Cloudflare reports that Pingora uses about 70% less CPU and 67% less memory than its old service.
  • Measure one service before rewriting it. Weigh monthly savings against migration and ongoing maintenance costs.
Why companies are rewriting software in Rust, and what it means for your business

When server bills rise with traffic, a rewrite might lower running costs, but you pay for the migration before you know how much you’ll save. Drawing on Cloudflare and Discord, this article shows how to choose one service to test in Rust and estimate how long it would take for any savings to cover the migration.

What is changing?

Discord moved its Read States service from Go to Rust in 2020 to address latency spikes. In 2022, Cloudflare described Pingora, its Rust service for forwarding web requests. In 2025, Google reported that new Rust code in the Android system components it develops had approached C++ in volume. Discord · Cloudflare · Google

What can a business gain, and under what conditions?

At the same traffic load, Cloudflare reports that Pingora uses about 70% less CPU and 67% less memory. Cloudflare credits both more efficient code and architectural changes, including connection reuse. Measure your own system before treating those results as a forecast. Pingora results

If the service spends most of its time waiting for a database, the network, or a third-party service, measure and address that wait first. When application processing is the bottleneck, the gain matters if you can use smaller servers or handle more requests with the same capacity.

Where should you start?

  1. Pick one measurable service with a high running cost. Record CPU, memory, and response time at peak traffic.
  2. Rewrite one part in Rust and run both versions with the same data and traffic. Check that their outputs match before comparing performance.
  3. Estimate payback. Subtract additional maintenance costs from monthly savings, then compare that amount with the upfront migration cost.

Share the approach to recording existing behavior and checking the Rust version with your technical team. rust-anything review

HubCom offers system assessments as part of its software development and maintenance service. Tell us about your system

Terms in this article (6)
Rust
A programming language for software that must be fast, light on resources and secure. Cloudflare, Discord and Google use it for critical systems.
CPU and memory
The CPU is a server's processor; memory (RAM) is its working space. Lower CPU and RAM usage can let a business run on smaller servers.
Memory-safety bug
A flaw where software reads or writes the wrong part of memory. Attackers can use it to take over a system. Common in C/C++ code; Rust prevents most of them at compile time.
Proxy
A server in the middle that receives users' requests and forwards them to the systems behind it.
AI agent
AI software that carries out several steps on request, such as reading code, writing code and running checks.
rust-anything
An open-source tool that helps an AI agent move software to Rust piece by piece and checks it against the old version.

Frequently asked questions

What does rewriting software in Rust save a business?

Mainly CPU, memory and the number of servers. At the same traffic, Cloudflare's Rust proxy uses about 70% less CPU and 67% less memory. Each system's savings need their own measurement.

Does a small or mid-sized business need to rewrite all its software?

No. It can move one piece at a time, starting with the most resource-hungry part, while the system keeps running.

When is a Rust rewrite not worth it?

When the slowness comes from the database, the network or an outside service, or when nobody can maintain Rust after handover.

Sources

Talk with HubCom ↗