Re:What's wrong with 2006 programming? (2010)
by kelnos on Wednesday December 21, 2016 @12:51AM
(#13227083)
nginx is a forking server, though, so individual workers being blocked wouldn't affect others, and the application as a whole can use all available CPU cores.
[ Parent
| on HN ]
Re:What's wrong with 2006 programming? (2010)
by tyingq on Wednesday December 21, 2016 @01:26AM
(#13227192)
That's roughly the reply from antirez regarding redis being single threaded, just run more processes.
Let's start with Redis being single threaded, the path we are taking is to build "Redis Cluster"...This means that Redis will run 48 instances in a 48 core CPU...
Re:What's wrong with 2006 programming? (2010)
by kelnos on Wednesday December 28, 2016 @03:43AM
(#13269306)
Right, but running redis in that manner is far more operationally-intensive than running several nginx worker threads.
nginx runs workers by default, which (I believe) can be tuned by a couple config options.
To run multiple redis instances as a part of the same cluster, you need a way to shard your data (which you have to reason about client-side), you need separate config files, data directories, etc. for each instance. It's a huge pain.