# EMx 059: Using Rust to Scale Elixir for 11 Million Concurrent Users with Matt Nowack

> Episode of [Elixir Mix](https://podistic.com/podcast/elixir-mix.md) · Published July 9, 2019 · Duration 54:28

- **Listen on Podistic:** https://podistic.com/episode/emx-059-using-rust-to-scale-elixir-for-11-million-concurrent-users-with-matt-nowack
- **Audio:** https://dts.podtrac.com/redirect.mp3/api.spreaker.com/download/episode/58851675/stream.mp3 (audio/mpeg)

## About this episode

Sponsors

*   [Sentry](http://sentry.io/) use the code “devchat” for 2 months free on Sentry small plan
*   [CacheFly](https://www.cachefly.com/)

Panel

*   Mark Ericksen
*   Josh Adams
*   Michael Ries
*   Eric Oestrich

Joined by Special Guests: Matt Nowack Summary Matt Nowack, a developer at Discord, gives an intro to Discord and shares its origin story. The panel discusses the problems that Discord was having because of its 11 million concurrent users. Matt talks about when they knew there was a problem, how they used a runtime VM to find the problem, the tools they tried to fix the problem and how they landed on NIFs to fix the problem. The panel discusses the risks of using NIFs and how using Rust helps negate that risk. Matt discusses the reference counter in the rustler package and answers questions about using dirty schedulers. Discord developers publish many blogs and publish many open source projects; Matt shares the Discord philosophy on open sourcing and contributing to the Elixir community.  Links

*   [https://github.com/discordapp/sorted\_set\_nif](https://github.com/discordapp/sorted_set_nif)
*   [https://github.com/rusterlium/rustler](https://github.com/rusterlium/rustler)
*   [Matthew Nowack - ZenMonitor: Scaling Distributed Monitoring at Discord | Code BEAM SF 19](https://youtu.be/P89N1YJBjpA)
*   [https://en.wikipedia.org/wiki/Fates\_Forever](https://en.wikipedia.org/wiki/Fates_Forever) 
*   [http://erlang.org/doc/tutorial/nif.html](http://erlang.org/doc/tutorial/nif.html) 
*   [https://www.rust-lang.org/](https://www.rust-lang.org/) 
*   [https://blog.discordapp.com/using-rust-to-scale-elixir-for-11-million-concurrent-users-c6f19fc029d3](https://blog.discordapp.com/using-rust-to-scale-elixir-for-11-million-concurrent-users-c6f19fc029d3) 
*   [https://github.com/discordapp/sorted\_set\_nif](https://github.com/discordapp/sorted_set_nif) 
*   [https://www.erlang-solutions.com/blog/a-guide-to-tracing-in-elixir.html](https://www.erlang-solutions.com/blog/a-guide-to-tracing-in-elixir.html) 
*   [https://github.com/ferd/recon](https://github.com/ferd/recon) 
*   [https://discordapp.com/jobs](https://discordapp.com/jobs) 
*   [https://elixir-lang.org/blog/2019/06/24/elixir-v1-9-0-released/](https://elixir-lang.org/blog/2019/06/24/elixir-v1-9-0-released/) 
*   [https://github.com/ihumanable](https://github.com/ihumanable)
*   [https://twitter.com/ihumanable](https://twitter.com/ihumanable)
*   [https://www.facebook.com/Elixir-Mix](https://www.facebook.com/Elixir-Mix) 
*   [https://twitter.com/elixir\_mix](https://twitter.com/elixir_mix)

Picks Mark Ericksen:

*   [https://www.nps.gov/grca/planyourvisit/havasupai.htm](https://www.nps.gov/grca/planyourvisit/havasupai.htm) 
*
