4 ms·
it's single threaded, but event driven. it doesn't block the whole server when it does blocking IO. for good or bad, that means you scale it horizontally by r
by compsciphd 5y ago
it's single threaded, but event driven. it doesn't block the whole server when it does blocking IO.
for good or bad, that means you scale it horizontally by running an instance per core and shard appropriately to that.
- avinassh 5y agoWhat kind of IO operations Redis does? The replication or disk persistence? I thought that prolly runs in other threads not the one which is serving clients
- compsciphd 5y agoyes, I believe (haven't actually looked closely at it, just based on other stuff I've done with redis module interface) that they occur in the single process, just via event driven architecture so the process doesn't block on them.