r/appwrite • u/eldadfux • 5d 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.
1
u/robotnarwhal 2d ago
Exciting! I think people are always wary when a startup announces a full platform rewrite, but you're right that the associated costs/risks are shrinking. Throughput should definitely stay much higher than PHP, so I'd definitely be interested in seeing the infrastructure savings along with any final thoughts on doing such a big rewrite with 2026 LLM's if you have the time to share.
3
u/Silent-Spaz259 4d ago
Ahh the meme lives on.
1
u/codewithah 4d ago
PHP is cursing you. 💀🐘
0
u/TobiasMcTelson 4d ago
Ok When Rust become one of those dead things, you are welcome back to PHP