Developer Compares C# and Rust by Rebuilding a Real-Time Order Tracking Service
A software developer with extensive C# experience rebuilt a real-time order tracking service in Rust to compare the two languages hands-on, rather than relying on opinion pieces. The project used ASP.NET Core and SignalR for the C# version, and axum with Tokio for the Rust version, with both handling in-memory state and WebSocket updates. Informal benchmarks on the developer's laptop showed Rust's axum achieving roughly 34,000 requests per second versus 9,000 for ASP.NET Core, with idle memory usage of around 9 MB compared to 110 MB for .NET. The developer noted that .NET's JIT compiler narrowed the performance gap significantly under sustained load, making it competitive once warmed up. Key takeaways centered on Rust's compile-time memory safety, explicit concurrency model, and predictable tail latency, while C# was credited for its productivity and mature ecosystem.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in