Generate Controller-Wide ETags [Rails 4 Countdown to 2013]

Posted on

One of the new features in Rails 4 is the ability to suffix controller-wide information to ETags. At the controller class level, you can set data by passing a block to the new `etag` macro style method. The etag method can be called multiple times, with each subsequent call suffixing the information to the response's ETag for easy client-side caching.

Read More

Benchmarking and Load Testing with Siege

Posted on

When launching a web application, you want to ensure that it will be able to handle the load of users accessing the site. We can get an idea of how it will perform by using a benchmarking tool. While there are many popular tools such as ab (Apache HTTP server benchmarking tool) used by developers today, I want to introduce you to Siege.

Read More