6 ms·
Discord switched to Rust some time ago: https://blog.discord.com/using-rust-to-scale-elixir-for-11-million-concurrent-users-c6f19fc029d3 https://blog.discord.co
by dgellow 6y ago
Discord switched to Rust some time ago: https://blog.discord.com/using-rust-to-scale-elixir-for-11-million-concurrent-users-c6f19fc029d3 https://blog.discord.com/using-rust-to-scale-elixir-for-11-m...
Still a very impressive use of elixir IMHO.
- blixtsnabb 6y agoThe article says nothing about them switching to rust. They implemented a specific data structure in rust using elixir NIFs (native interface). This is equivalent of calling a C library from other languages.
- nesarkvechnep 6y ago"Our core services aren’t written in Rust, they are Elixir-based." They haven't switched, just use Rust at some places for performance improvements.
- dgellow 6y agoMy bad, I visibly remembered the article incorrectly and didn’t take the time to read again when sharing. Thanks for the correction. Unfortunately I cannot edit my original comment.
- xlii 6y agoBased on article they didn’t switch to Elixir but instead are using Rust within Elixir in order to solve complex performance issues.
- sodapopcan 6y agoOthers have already repeatedly mentioned this was a performance optimization. Elixir/Erlang is not particularly good for heavily CPU bound tasks--This is by design. For lack of a better source, here is a post on the Elixir forum from Robert Virding (one of the creators of Erlang) on the subject: https://elixirforum.com/t/on-why-elixir/34038/62 https://elixirforum.com/t/on-why-elixir/34038/62
- deleted 6y ago[deleted]