4 ms·
What are your thoughts on the disruptor pattern? It seems to me to be something that tries to eat the cake of multithreading while still having a lot of the sim
by yxhuvud 15y ago
What are your thoughts on the disruptor pattern? It seems to me to be something that tries to eat the cake of multithreading while still having a lot of the simplicity of eventing.
( https://code.google.com/p/disruptor/ https://code.google.com/p/disruptor/ )
- willvarfar 15y agoIts a very different approach. I do like their presentations and I've really got a thing for the "mechanical sympathy" term they coined. At a glance I'd say its not really the solving the same problems and isn't generally applicable to, say, application web servers. I would love to be educated on that score ;)
- jamii 15y agoThe disruptor is just a very efficient event loop. It doesn't prevent you from blocking the handling thread.
- yxhuvud 15y agoTrue, if you do blocking stuff in the handler instead of in the worker threads.