Yandex open-sources YaFF to reduce server CPU usage by up to 20 percent

When companies talk about saving CPU cycles, most people tune out. That is understandable. It is not exactly the sort of topic that gets the average person excited. But for organizations running large-scale services, even small efficiency gains can translate into serious money.

That is why Yandex’s decision to open-source YaFF, short for Yet Another Flat Format, is worth a look.

The company says YaFF was designed to solve a common problem with Protobuf, the widely used data serialization technology. While Protobuf is efficient for transmitting data, applications typically need to deserialize that data before they can use it. According to Yandex, that process can consume as much as 10 percent of available CPU resources in large systems.

YaFF takes a different approach. Rather than forcing applications to deserialize data before accessing it, the technology allows direct access while remaining compatible with existing Protobuf schemas and workflows. In other words, developers may be able to gain performance improvements without rewriting applications or migrating to an entirely different format.

That compatibility could be the project’s biggest selling point. Technologies such as FlatBuffers already exist to address similar challenges, but switching to a new format can be expensive and time-consuming. Yandex says YaFF works alongside existing Protobuf infrastructure, potentially making adoption much easier.

The company claims YaFF is already being used in its advertising platform, which processes hundreds of thousands of requests per second. In that environment, Yandex says the technology reduced CPU usage by between 10 and 20 percent.

Naturally, those numbers should be viewed with some caution until independent developers have had time to evaluate the technology in their own environments. Still, the idea is intriguing. If YaFF can deliver meaningful performance gains without forcing major architectural changes, it could find an audience among developers responsible for high-load backend systems.

Yandex has released YaFF under the Apache 2.0 license and made the source code available on GitHub here. Now comes the real test: whether the broader developer community can reproduce the company’s results outside of Yandex’s own infrastructure.

Support independent tech journalism

NERDS.xyz is independently owned and operated. If you enjoy my coverage of Linux, AI, hardware, cybersecurity, and tech culture, consider supporting the site on Ko-fi.

Support NERDS.xyz
Avatar of Brian Fagioli
Written by

Brian Fagioli

Technology journalist and founder of NERDS.xyz

Brian Fagioli is a technology journalist and founder of NERDS.xyz. A former BetaNews writer, he has spent over a decade covering Linux, hardware, software, cybersecurity, and AI with a no nonsense approach for real nerds.

Leave a Comment