Re:A Full Web Service with HTTP caching in 7 lines
by aaronblohowiak on Tuesday February 24, 2009 @04:17PM
(#493610)
Rack::Cache is neato for development, but you're better served using Varnish for production -- it acts as a caching reverse proxy to multiple machines, is insanely fast and battle-tested, it can be configured to serve stale content if the backend becomes unreachable, it supports ESI, and more!
And yes, Sinatra & Rack are super cool.
1. Sinatra and Rack are amazing lightweight alternatives (especially for web services) compared to the giantness that is Rails.
2. Rack::Cache is seriously awesome (http://tomayko.com/src/rack-cache/) and deserves more attention...