Re:Why Discord is switching from Go to Rust (2020)
by SirGiggles on Friday April 15, 2022 @08:47AM
(#31039583)
Bit of a late reply, but how does Elixir fit into the overall strategy? Is it still like how it is described in previous engineering blogs where it acts as a kind of orchestrator for guilds?
Re:Why Discord is switching from Go to Rust (2020)
by abeltensor on Thursday April 14, 2022 @01:05AM
(#31023587)
I love Rust elixir Nifs. Gives you the best of both worlds to be honest. Highly fault tolerant code with fast computation. Only downside is that it can't really handle extreme crashes like a native process can.
Re:Why Discord is switching from Go to Rust (2020)
by wut42 on Thursday April 14, 2022 @11:05AM
(#31027907)
Erlang/Elixir + Rust is an awesome couple. For the downside you mentioned, depending on the use case, it could be interesting to use Rust as a node: https://github.com/sile/erl_dist
Re:Why Discord is switching from Go to Rust (2020)
by abeltensor on Friday April 15, 2022 @12:11AM
(#31036550)
Very nice. Nodes are great if you want a long running system along side your elixir app.
It has been an incredible success. I plan to blog more about it in the coming months. Our usage of Rust is continuing to grow, and if you check out our jobs page, you might notice all backend / infra jobs list Rust in them now :)
I think probably 40% of requests are handled directly by rust services now, with the rest involving one or more rust service called from our Python API layer.