Cranston's Life - Rust and More Rust

Rust Leaves Me Astounded!

It is rare for a Rust article to leave me ASTOUNDED but that is what has just happened when I read the Why Discord is switching from Go to Rust article!

I am in a state of DISBELIEF, but I also know that what I read is also VERY BELIEVABLE because Rust is involved.

The article tells how the Discord team discovered that a service written in Go was suffering from garbage collection induced performance PROBLEMS every 2 minutes!

Read the article for the whole story, but the main point to consider is that the service was rewritten in Rust.

Excerpts from the article will emphasize the important parts of this situation BETTER than I can:

  • "The latency of the Rust version was just as good as Go’s and had no latency spikes!"
  • "Even with just basic optimization, Rust was able to outperform the hyper hand-tuned Go version."
  • "After a bit of profiling and performance optimizations, we were able to beat Go on every single performance metric. Latency, CPU, and memory were all better in the Rust version."

The metrics and graphs are IMPRESSIVE!

What an ASTOUNDING result that shows what Rust is capable of!

ASTOUNDING!

Simply ASTOUNDING!