4 ms·
Is the LMAX disruptor just a ring buffer? Anything else special about it?
by pkaye 2y ago
Is the LMAX disruptor just a ring buffer? Anything else special about it?
- xxs 2y agoIt is a ring buffer indeed, with publish serialization (on producer side) and normally a busy wait. It sort of doesn't work on some VMs due to scheduling. (I mean the busy wait w/o a backoff)
- jnordwick 2y agoThe big win is how it allows bulk processing while taking serialization dependencies into account. So you algos reading market data messages and yank all that is there and apply them in bunk instead of trying to do each one individually. And your logger that is storing all the messages to a file and/or db knows what messages the algo has processed and can grab all the messages up to that point so it is always writing as much as it can and current.
- hangonhn 2y agoIs this ability that is the result of each component being able to read the index/sequence number of all the other components?