2 ms·
My Rails app is very likely to be moved on to Sinatra, specifically for this reason. Sinatra's codebase is really only about 1600 lines of Ruby, so it's very e
by donw 17y ago
My Rails app is very likely to be moved on to Sinatra, specifically for this reason. Sinatra's codebase is really only about 1600 lines of Ruby, so it's very easy to understand, and very easy to extend, and it's threadsafe.
There just aren't that many moving parts, so there's very little that can go wrong, and there's no hidden magic, which is what has been making my life hell in the Rails 3 beta.
Also, Sinatra is fast. I just did a quick benchmark (ab -n 1000 -c 5 -k) on my laptop, and the scores were impressive. In the same rackup server, a bare Rack app did 4932 req/sec, Sinatra did 3169 req/sec, and the Rails 3 beta managed... 214 req/sec.