tag:blogger.com,1999:blog-90440057274722849.post3959307774169998436..comments2023-09-21T15:29:33.588+01:00Comments on Trisha's Ramblings: Disruptor 2.0 - All Change PleaseTrishahttp://www.blogger.com/profile/11486870702929760981noreply@blogger.comBlogger12125tag:blogger.com,1999:blog-90440057274722849.post-65834218785586873082013-01-18T21:15:31.090+00:002013-01-18T21:15:31.090+00:00I don't think so, it's designed for passin...I don't think so, it's designed for passing messages around not doing the processing. You can build a matcher and have it as a processor, but that's not at all dependent upon being part of the Disruptor.Trishahttps://www.blogger.com/profile/11486870702929760981noreply@blogger.comtag:blogger.com,1999:blog-90440057274722849.post-52660309559790418812013-01-18T21:13:53.187+00:002013-01-18T21:13:53.187+00:00A nice little pattern this disruptor, thanks for e...A nice little pattern this disruptor, thanks for explaining it so well Trisha. Quick question: do you think it's possible to turn a disruptor into an order matching algo?Anonymoushttps://www.blogger.com/profile/03187814632475664543noreply@blogger.comtag:blogger.com,1999:blog-90440057274722849.post-56268445880760572512013-01-07T19:59:03.370+00:002013-01-07T19:59:03.370+00:00Hi Trisha, great blog and great posts about the Di...Hi Trisha, great blog and great posts about the Disruptor. Shame that you are not at LMAX anymore, I will find a lot harder to understand what's in the next big release of the Disruptor without your drawings to help.. :( <br />Speaking of the Disruptor I was wondering if I could pick your brain regarding a use case I had in mind. I am currently coding an order book implementation (for a job application) and was thinking that it would be great if I used the Disruptor somewhere in my code. However I am unsure where it would be best to use it and was wondering if you could give some guidance. <br />Basically there are many order books but only one source of events (the orders publisher). It seems logical that my Disruptor should hold the orders events right? My question then is should I use one Disruptor per order book (the event consumer) or have all the order books read off the same Disruptor (could be several hundreds order books listening)? Or should I put several Disruptors in series maybe? Those maybe a bit vague questions but any input would be hugely helpful! Thanks Trisha and happy new year! JulienAnonymoushttps://www.blogger.com/profile/03187814632475664543noreply@blogger.comtag:blogger.com,1999:blog-90440057274722849.post-68818126226004895822011-11-16T23:32:28.889+00:002011-11-16T23:32:28.889+00:00Each consumer tracks its own sequence. It knows w...Each consumer tracks its own sequence. It knows which number it needs to access from the ring buffer, so you need to keep a field in your consumer to track it. <br /><br />If you need technical help, the best place to go is the google group: https://groups.google.com/forum/#!forum/lmax-disruptorTrishahttps://www.blogger.com/profile/11486870702929760981noreply@blogger.comtag:blogger.com,1999:blog-90440057274722849.post-66891655521512732212011-11-16T20:25:38.583+00:002011-11-16T20:25:38.583+00:00Oh ... hang on, I'm not making any sense; I as...Oh ... hang on, I'm not making any sense; I assume I should not change the sequence on an event. <br /><br />What sequence should I be increasing? From what class is it accessed?kovhttps://www.blogger.com/profile/06778994990652169779noreply@blogger.comtag:blogger.com,1999:blog-90440057274722849.post-21131721752103820562011-11-16T19:59:46.919+00:002011-11-16T19:59:46.919+00:00Thanks, Trisha. Looking at trunk, AbstractEvent.se...Thanks, Trisha. Looking at trunk, AbstractEvent.setSequence is package-scoped; is there something in the framework that sets sequence for me? Otherwise I would have to declare all my event-types within your package.kovhttps://www.blogger.com/profile/06778994990652169779noreply@blogger.comtag:blogger.com,1999:blog-90440057274722849.post-20567332991140196112011-11-16T16:44:44.317+00:002011-11-16T16:44:44.317+00:00@kov you need to remember to increment the sequenc...@kov you need to remember to increment the sequence number when you've finished processing. The downstream consumers will be reading that to see if they can process anything else.Trishahttps://www.blogger.com/profile/11486870702929760981noreply@blogger.comtag:blogger.com,1999:blog-90440057274722849.post-2157706866900642442011-11-15T22:53:48.830+00:002011-11-15T22:53:48.830+00:00When processing events with a chain in the 'di...When processing events with a chain in the 'diamond' pattern above, is there something special that the intermediate handlers have to do to insure that downstream handlers get their chance to process the events?<br /><br />I have put together a simple example, but only my first handler is getting invoked, none of the rest of the handlers.kovhttps://www.blogger.com/profile/06778994990652169779noreply@blogger.comtag:blogger.com,1999:blog-90440057274722849.post-31826982600574748822011-10-04T17:31:49.028+01:002011-10-04T17:31:49.028+01:00It's not just a server-side thing. You can us...It's not just a server-side thing. You can use it anywhere you would usually use a queue, but you can also use it anywhere you want to run processes in parallel. So there are definitely use-cases for a trading application. <br /><br />We don't have any examples of this right now, but I know there are people working on using the Disruptor for a trading app.Trishahttps://www.blogger.com/profile/11486870702929760981noreply@blogger.comtag:blogger.com,1999:blog-90440057274722849.post-9149572271172121232011-10-02T17:12:56.546+01:002011-10-02T17:12:56.546+01:00Hi trisha,
I try do understand the advantage to u...Hi trisha,<br /><br />I try do understand the advantage to use the disruptor for me algo trader for reduce my latency ?! <br /><br />There advantage or it's just for the server side (LMAX) ?<br /><br />Thanks.<br />Regards.Ludohttps://www.blogger.com/profile/12402213041699823543noreply@blogger.comtag:blogger.com,1999:blog-90440057274722849.post-45460889964355373772011-08-30T15:43:07.249+01:002011-08-30T15:43:07.249+01:00Thank you!Thank you!Trishahttps://www.blogger.com/profile/11486870702929760981noreply@blogger.comtag:blogger.com,1999:blog-90440057274722849.post-82953256366603308982011-08-30T15:32:22.305+01:002011-08-30T15:32:22.305+01:00Trisha, your blogs have been great. The new naming...Trisha, your blogs have been great. The new naming scheme makes it MUCH easier to understand what it going on.falconhttps://www.blogger.com/profile/12277230403055479892noreply@blogger.com