Ask anything about this article
Hi! I've read this article.
What would you like to know?
@farhan

Just this morning Windows Latest reported that Discord is retiring its Electron client – the one that could easily gobble 4GB of RAM on Windows 11 – and replacing it with a Rust‑based version that runs under 300MB. The headline reads like a death knell for the Electron ecosystem, and developers on Hacker News and Twitter are already debating whether this signals the end of the "write once, run everywhere" mindset.
"If a 100‑million‑user app can shed 3.7GB of memory, the rest of us need to ask why we keep shipping Electron."
In this post I break down the technical reasons behind Discord’s move, the broader implications for the desktop app market, and what you as a developer can do right now to stay relevant.
| Feature | Discord Electron (2023) | Discord Rust (2024) |
|---|---|---|
| Memory usage (typical idle) | ~4 GB on Windows 11 | ~290 MB |
| Startup time | 8‑10 seconds | 1‑2 seconds |
| Binary size | ~200 MB (packed) | ~45 MB |
| Cross‑platform support | Windows, macOS, Linux (via Chromium) | Same platforms, native Rust UI libraries |
| Update cadence | Weekly releases, heavy bundle size | Monthly, incremental diff updates |
The numbers speak for themselves: a >90% reduction in RAM, a 5‑10x faster launch, and a smaller download. Discord claims the new client also improves battery life on laptops and reduces CPU throttling, but the headline metrics are already enough to cause a ripple.
Discord’s decision is less about a single technical flaw and more about a cultural shift: developers are no longer willing to accept massive bloat for the convenience of a single codebase.
Rust isn’t the first language people have tried to replace Electron. There were attempts with Go, C++, and even Python (via PySide). What makes Rust stand out?
Discord isn’t building a UI from scratch; they are leveraging Tauri, which uses a minimal webview (WebKit on macOS, Edge WebView2 on Windows) and lets you write the front‑end in HTML/CSS/JS while the back‑end runs in Rust. This hybrid approach retains developer productivity while slashing the heavyweight Chromium bundle.
| Category | Likelihood of Migration | Reasoning |
|---|---|---|
| Large SaaS (Slack, VS Code) | Medium‑High | Already have resources; user base expects performance. |
| Indie Tools (Obsidian, Notion) | Low‑Medium | Limited dev bandwidth; may adopt hybrid solutions like Tauri. |
| Game Launchers (Epic, Steam) | Low | Already native or heavily optimized; Electron not primary tech. |
The trend is clear: high‑visibility, high‑traffic apps will evaluate Rust/Tauri or similar stacks. Smaller projects might stay on Electron for now, but they will feel pressure as users compare performance.
rust-desktop subreddit, the Tauri newsletter)."Electron will survive as a quick‑prototype tool, but any app that scales to millions of users must eventually shed the Chromium weight."
The reality is nuanced. Electron still powers countless internal tools, dashboards, and niche apps where developer speed outweighs performance concerns. However, the signal‑to‑noise ratio is shifting: the community now expects native‑level performance for consumer‑facing products.
Discord’s Rust rewrite is a proof of concept that the performance gap can be closed without abandoning the web stack entirely. It forces the industry to confront a hard truth: user experience is now a performance metric. If you ignore the memory bloat and startup latency of your Electron app, you risk losing users to leaner competitors.
The next wave of desktop development will likely be a hybrid model – front‑ends built with familiar web technologies, back‑ends powered by Rust or Go, and lightweight native shells. Embrace the change now, or watch your app become the next cautionary tale on Hacker News.
If you found this analysis useful, share it on Twitter and up‑vote the discussion on Hacker News. The conversation is just beginning.