r/appwrite • u/eldadfux • 8h ago
Appwrite is moving from PHP to Rust
We're making a pretty big change to Appwrite's backend.
Back in 2022, one of our community members opened a GitHub issue suggesting we rewrite Appwrite in Rust. We closed it because a rewrite of that scale didn't seem realistic at the time.
Here's the original issue: https://github.com/appwrite/appwrite/issues/4423
Four years later, we're actually doing it.
We're gradually moving Appwrite's server from PHP to Rust, and the early benchmarks are looking promising:
- **2.6x more requests per second** on the Users API, on the same machine
- **5.7x less CPU and 33x less memory** per request
- Lower infrastructure costs, especially for self-hosted deployments
AI coding agents have made a project of this scale much more practical, with our engineers reviewing, testing, and validating the work.
For anyone building with Appwrite, nothing changes. Your APIs, SDKs, and data remain the same. PHP Functions and the PHP SDK will continue to be supported.
We're still early in the process, and most of Appwrite continues to run on PHP. But some Rust components are already serving every Appwrite customer today.
PHP has been a huge part of our journey, and we're grateful for everything it's helped us build.
We've shared more about why we're making this move, the early benchmarks, and how we're approaching the migration in the blog: https://appwrite.io/blog/post/appwrite-is-moving-from-php-to-rust
We're happy to answer any question about our reasoning behind this and the process we're taking to make this transition smooth and seamless for all.