logo Boston Ruby Group


March 8, 2016

Cloud Based Proxies for Rack apps

by Vincent DeVendra

This talk will detail some of the lessons the speaker learned from writing a gem that allows its users to easily implement a cloud-based proxy cache for their Rack app. Proxy caching is similar to a browser caching, except that the cache is shared by every client making requests to a server. So, as soon as one client requests a given path, any subsequent requests to that same path will return the cached version (as long as certain conditions are met). The gem implements a Rack middleware to catch requests and return cached responses before a server is ever hit. That means public pages that don't change often can load lightning fast and the burden on a server can be substantially lightened.