2 ms·
Not to mention: If you thought $OLD_SOLUTION was hard, then lockless is a whole other level of difficulty. (This is why I would generally advocate for a messag
by lomnakkus 9y ago
Not to mention: If you thought $OLD_SOLUTION was hard, then lockless is a whole other level of difficulty.
(This is why I would generally advocate for a message-passing style for almost everything, but obviously that's not quite the context of this thread. My reasoning is that you can always start off with message passing and if you discover that that's your bottleneck, you can always transition to a faster alternative[1]. Plus, you could use a lock-free message passing solution, e.g. Aeron.)
[1] Plus, by using message passing you've already got pretty good separation of logic.