3 ms·
What middlewares are you guys using in production? Most of these seem pretty gimicky.
by utnick 17y ago
What middlewares are you guys using in production?
Most of these seem pretty gimicky.
- petercooper 17y agoIf I had to guess, I think Rack::Cache is very popular - http://tomayko.com/src/rack-cache/ http://tomayko.com/src/rack-cache/ - and not so gimmicky :)
- tierack 17y agoThey're mostly gimmicky because they were all made for a middleware contest. Even their gimmickiness doesn't really go against the goals of the contest, the primary one being "to encourage Ruby developers to explore the possibilities". In the end, even if very few end up being actually useful, there will be plenty of good short examples using a variety of different Rack tricks. That said. Rack::Cache. And I wrote myself for one site that displays some extra info if a request comes from certain IPs (i.e. mine).
- defied 17y agoI am using Rack::Deflater to gzip output, as there is no easy way to do this with lighttpd.
- nakajima 17y agoI use Rack::Flash (http://github.com/nakajima/rack-flash http://github.com/nakajima/rack-flash) in a bunch of Sinatra apps.