Re:The End of the Redis Adventure
by binarymax on Tuesday June 30, 2020 @09:21AM
(#23689686)
HN hugged to death. Here's the snapshot on archive: https://web.archive.org/web/20200630130517/http://antirez.co...
[ Parent
| on HN ]
I think its website need a fast cache.
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.
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.
I actually wonder how many request/s one gets from being on the top of HN.
not very high
a previous post of mine got 500 points and stay #1 for a few hours.
https://news.ycombinator.com/item?id=22410448
traffic from it looks like this
https://tuananh.net/2020/03/02/traffic-from-top-post-on-hack...
> Traffic stats on Cloudflare seems a bit inflated with the unique visitors at 36k. Maybe they do count bots as well there.
First screenshot looks like Google Analytics to me; I'd say it's more likely a lot of us have blocked it and Cloudflare's number is more accurate.
My "Show HN" post was in the bottom half of the HN home page for less than an hour. Traffic to the site was roughly 100 times greater than its current levels (by bandwidth):
https://www.linkedin.com/posts/rik-roots-50349611_in-case-an...
"antirez 2 hours ago. 52347 views. "
Those are the ones that got through all the way, or at least the ones that got picked up by the view counter. Not the people that got error or timed-out responses.
Re:The End of the Redis Adventure
by ignoramous on Tuesday June 30, 2020 @10:20AM
(#23690263)
archive.is: https://archive.is/w1oCw