Background processing on the cheap.

October 27, 2014


We recently upgraded to Rails 4.2.0.beta2 to take advantage of the new Active Job framework and other improvements. We chose Sucker Punch to avoid the cost of using a separate worker on Elastic Beanstalk, along with Fist Of Fury for scheduling ( which we ended up not using ). "I use sucker_punch as a poor man's sidekiq. I can have async jobs on Heroku without paying the extra worker. My jobs are usually very small and fast, so it works just fine. ... Read more

Speeding up Ruby on Rails

August 19, 2014


…with less sql queries A Rails application will make a large number of sql queries per page unless steps are taken to mitigate this. This is bad because it degrades the performance of your app, affects your ability to scale, and will cost you money. Install the New Relic gem to see the sql queries made when loading a page in your app. Here is what we changed to reduce the number of sql queries per page: For lists: fix the n+1 problem with eager loading Avoid unnecessary count queries resulting from ”. ... Read more

© 2018 Keith P | Follow on Twitter | Git