Hacker News new | ask | show | jobs
by antirez 2177 days ago
Actually the web site uses Redis as the only store. And Redis is using 0.1% of CPU. The problem is that Ruby sucks at doing anything scalable. It's just a Ruby/Sinatra app. If you do that in PHP, it will work out of the box with many concurrent accesses. With Ruby not the case. There are ways to deploy it better, but it should be fast as default, which is not the case.
4 comments

As a lover of Tcl (https://web.archive.org/web/20200615130120/http://antirez.co...), I'm surprised you're using ruby and not something Tcl-based with its built-in concurrency
I guess it would be interesting if you re-wrote your website in PHP and wrote a blog post about it with the title 'Why I Moved From Ruby to PHP?'
Or just build a proper Ruby implementation
That sounds like a good area on which you might work! :D
NGINX supports Lua scripting. Many years ago I worked on a system which ran a full website on NGINX + Lua + Redis.