Live data from Hacker News

On the web server scalability and speed are almost the same thing

antirez.com

1–10 of 67 posts

Re: On the web server scalability and speed are almost the same thing

#5
It would be interesting to see the results of this simple experiment for different web frameworks: almost empty template and no other processing => how many requests per second? If it's much slower than i/o times, something should probably be done about it.

(BTW I completely agree with antirez's point.)

Re: On the web server scalability and speed are almost the same thing

#6
I agree, not only because I've run benchmarks myself but because simpler and faster code is possible. Just a comparison of everything Sinatra does when rendering (http://goo.gl/6U7yr) vs what Cuba does (http://goo.gl/z1Oes) can shed some light on this issue.

Re: On the web server scalability and speed are almost the same thing

#7
post #6

I agree, not only because I've run benchmarks myself but because simpler and faster code is possible. Just a comparison of everything Sinatra does when rendering ( http://goo.gl/6U7yr ) vs what Cuba does ( http://goo.gl/z1Oes ) can shed some light on this issue.

Well, that's that settled! Everyone knows that the execution time of a method is linearly proportional to its length.

Re: On the web server scalability and speed are almost the same thing

#10

Slow template rendering only matters if your pages are heavily personalized for each user. Stick Varnish in front the page and serve over 2,500 request/sec and use whatever framework you are most comfortable with.

all things can not be cached heavily. And even for things that can you still need to regenerate the cached data to some degree. Code that is ten times slower will require 10 times more hardware even if you cache. The cache only makes the number you're multiplying by 10 smaller.
Post reply on HN