Relic 2 - A massive performance boost for server-side Dart

Announcement

We're excited to announce Relic 2, the next generation of our open-source web server for Dart. With a completely new native core, Relic 2 delivers almost five times the performance of Relic 1 and more than six times the performance of Dart Shelf, the most widely used Dart web server, in our benchmarks.

Relic 2 is production ready and available today.

What is Relic?

Relic is an open-source, low-level web server built specifically for Dart. Inspired by Shelf, it provides a modern API with type-safe routing, middleware, WebSockets, and the tools needed to build reliable web applications. Relic also powers Serverpod, our open-source backend framework for Flutter.

Relic was designed to provide a modern foundation for server-side Dart. With Relic 2, we've focused on improving its raw performance without compromising the developer experience.

A new native core built with Zig

The biggest change in Relic 2 is a completely new native core, written in Zig.

Instead of relying entirely on Dart's built-in HTTP server, Relic now handles low-level networking through a more efficient native implementation. Application logic remains in Dart, so developers can continue using the same language, tooling, and APIs.

The performance improvements are substantial. Here are our benchmarks.

relic-2-stats

These benchmarks measure raw HTTP performance, demonstrating that Dart can compete with some of the fastest web servers, regardless of programming language.

Easy upgrades and migrations

Despite the new networking core, Relic 2 maintains almost the same APIs as Relic 1. Most applications can upgrade with very few code changes and benefit from the improved performance.

If you're using Shelf, migrating to Relic is also straightforward. We've created a migration guide that also works great with AI coding agents. In most cases, you can give the guide to your agent and migrate your application in a single pass.

Improved HTTP handling and reliability

Relic 2 also includes several improvements beyond performance:

  • More robust HTTP header handling and better compliance with web standards.
  • New tools for HTML forms, multipart requests, and file uploads.
  • Improved security and reliability for production applications.

These changes make Relic a more capable foundation for building backend services in Dart.

Get started with Relic 2

With Relic 2, we're taking another step toward making Dart a first-class language for backend development. You can now combine Dart's type safety and developer productivity with HTTP performance that competes with servers written in Rust and other high-performance languages.

Relic 2 is fully open source and ready for production.

Explore the documentation and get started at docs.dartrelic.dev.

Happy coding!

Stay up-to-date

Our mailing list keeps you up-to-date with new Serverpod releases and features. You will get an email about once a month or when something big is happening. We promise to keep it relevant and we have a strict no-spam policy.

© 2026 Serverpod AB
Built with Serverpod - Hosted on Serverpod Cloud

Form not loading? Open it in a new tab.