Re:KeyDB – multi-threaded Redis fork by Snapchat
by threeseed on Sunday May 21, 2023 @07:30AM
(#36019850)
It's not improper it's just non-optimal.
And we have had non-blocking I/O for quite some time now.
Re:KeyDB – multi-threaded Redis fork by Snapchat
by mgaunard on Sunday May 21, 2023 @09:00AM
(#36020465)
Any networking program doing blocking I/O is doing it wrong.
Your I/O should only be done synchronously if it's non-blocking.
Now for disk I/O, it's a more muddy thing, it's actually quite different from networking since it's more transparently managed by the operating system.
And setting up, say, one thread per HTTP request will likely be negligible because blocking I/O is where time is spent anyways..