Tutorials

Optimize Dokku Deployment Speed for Ruby on Rails with Dockerfile
Dokku lets you setup Rails hosting infrastructure on a simple VPS without much dev ops experience. Although it is easy to get started, a default config might result in very slow and unreliable deployments. In this blog post, I will describe how I'...


Uploading files directly to S3 using Pre-signed POST request
Pre-signed POST request allows for securely uploading large files directly to S3 via a signed expirable url, bypassing the 30 seconds Heroku time limit.It’s easy to create a form in Rails which can upload a file to the backend. The backend, can th...


Background Processing with Rails, Redis and Sidekiq
In any non-trivial web application you will get to a point where certain requests take so long to answer that your application will break if you try to respond with a synchronous HTTP response.In this case you need to offload the work into a backg...


Exporting significant SQL reports with ActiveRecord
A few months ago we faced a memory issue on some of our background jobs. Heroku was killing our dyno because it was exceeding its allowed memory. Thanks to our instrumentation of Sidekiq, it was easy to spot the culprit. The job was doing a fairly...


Build a collaborative playlist over WhatsApp with Rails, Twilio, and Spotify - Twilio
Sharing music over playlists is a great way to discover new and old music. Spotify has collaborative playlists, but I don't like how they let your friends re-order and delete songs from the list. We can fix this by building our own collaborative p...