In this screencast we discover what typically causes Ruby server memory bloat, namely instantiating too many ActiveRecord objects. Thankfully there are several plugins which can help you detect when your application needs some help, and where your application is hurting the most. We start by taking a look at Rack-Bug, a toolbar which places all sorts of statistics about each requests at your fingertips. Next, we look at two libraries to help specifically track memory bloat; Memory Logic and Oink.
Play Video (49.5 MB, 10:21, MP4)
This is the last of three screencasts where looking at a couple new libraries to help you scale your Rails applications. In this episode we start by learning about rubber, a capistrano/rails plugin that makes it easy to deploy/manage/scale on Amazon EC2. Then we look at a background job system with a killer user interface called Cloud Crowd. Lastly we look at a web service called Mad Mimi, which allows you to keep track of mailing lists and even move all of your mailer erb templates out of your web application. Utilizing Mad Mimi’s API can give your customer more control of their mailing lists, and alleviate some developer frustration surrounding email.
To keep up to date with additional libraries which may help with Scaling, be sure to listen to the Ruby5 Podcast.
Play Video (81.7 MB, 17:07, MP4)