Operating with great efficiency, at scale and at the speeds your users came to expect of software in 2019 is a daunting task. This week’s theme is therefore speed and scale, where we look at several case studies from firms pushing their tech stacks to the limit and beyond.
Doing Background Work Using a Native Elixir Approach
By Desmond Bowe
A lot of Elixir alchemists come from a Ruby / Rails background – after all the somewhat easy transition is one of the selling points. When tasked with creating background jobs, Rubyists tend to reach for what they know – queue systems, Redis, RabbitMQ and all that fun stuff. There’s a better, idiomatic way.
https://blog.appsignal.com/2019/05/14/elixir-alchemy-background-processing.html
Using Rust to Scale Elixir for 11 Million Concurrent Users
By Matt Nowack
For “regular” scale tasks, Elixir is pretty fast. Heck, it’s pretty fast even for large-scale applications. But what needs to happen when your scale is not just large, but humongous? The team at Discord attempts an answer.
https://blog.discordapp.com/using-rust-to-scale-elixir-for-11-million-concurrent-users-c6f19fc029d3
A Tale of Query Optimization
By Manish Gill
Here’s a great case study of optimizing one particularly stubborn query. Interesting deep dive through PostgreSQL optimization tools – and proof that they don’t always tell the whole truth.
https://parallelthoughts.xyz/2019/05/a-tale-of-query-optimization/
Migrating millions of Redis keys without downtime
By Gustavo Caso
Redis is a great, versatile tool, and Shopify uses it heavily. At some point however their existing solution stopped scaling and needed an upgrade. But how do you migrate a Redis cluster with millions of entries – while remaining in flight?
http://gustavocaso.github.io/2019/04/30/migrating-millions-of-redis-keys-without-downtime/
A Modular RuboCop
By Bozhidar Batsov
RuboCop has tons of built-in cops that keep us honest and our code output clean. That’s both a boon and a pain, since there are just so many. Here’s an article on how the RuboCop team plans to manage that.
https://metaredux.com/posts/2019/05/22/a-modular-rubocop.html
Bonus! Want more still? Check out an article about the single trade that crashed Bitcoin.
Read also: