Questions tagged [lmax]

LMAX is a retail financial trading platform.

It appears it's a synonym of and ultimately should become so. Read info page to learn about LMAX.

From Martin Fowler's web site about the idea:

LMAX is a new retail financial trading platform. As a result it has to process many trades with low latency. The system is built on the JVM platform and centers on a Business Logic Processor that can handle 6 million orders per second on a single thread. The Business Logic Processor runs entirely in-memory using event sourcing. The Business Logic Processor is surrounded by Disruptors - a concurrency component that implements a network of queues that operate without needing locks. During the design process the team concluded that recent directions in high-performance concurrency models using queues are fundamentally at odds with modern CPU design.

65 questions
1
vote
1 answer

Using LMAX Disruptor for event handling reduces performance compared to Netty Handlers

I have written a Netty HTTP Server. I am figuring out right way to handle Http requests Options: (1. Netty Handlers 2. LMAX Disruptor). I have read it somewhere that LMAX Disruptor are good for async event handling. But after the load testing,…
Nandish Kotadia
  • 441
  • 1
  • 6
  • 21
1
vote
0 answers

LMAX Disruptor - sequential & parallel database/service calls on event handling

I a have a workflow (different tasks) that process data from Kafka/Redis streams. Some tasks are sequential & some parallel - on the high leve tasks fall into, verification -> computation -> transfer. The catch here is, many tasks requires (at some…
vvra
  • 2,832
  • 5
  • 38
  • 82
1
vote
1 answer

LMAX Distruptor Partition and join batch

So currently I have a Executor implementation with blocking queue and the implementation specific is like, I have list of items per request and I divide them into partitions each partition is then computed and finally they are joined to have the…
jamb
  • 186
  • 1
  • 8
1
vote
1 answer

how to push list to lmax disruptor in the eventclass

I need to store and get a huge data from mongodb so Im asked to receive and store data using lmax disruptor I have passed few days looking to a simple tutorial on the lmax github account, but I didn t understand it well how to put my special data…
patoCapongo93
  • 47
  • 1
  • 8
1
vote
2 answers

Disruptor Journaling Implementation

In Martin Fowler's write-up of the LMAX-disruptor architecture, he says: The journaler's job is to store all the events in a durable form, so that they can be replayed should anything go wrong. LMAX does not use a database for this, just the…
JoshAdel
  • 66,734
  • 27
  • 141
  • 140
1
vote
1 answer

LMAX Disruptor Dependency Graph/Gating with SequenceBarrier

Goal I'm trying to create a dependency relationship between handlers that's somewhat circular, and I can't quite figure out how to get it right. What I want to achieve is a variation of producer -> [handlers 1-3] -> handler 4. So,…
John Dorian
  • 1,884
  • 1
  • 19
  • 29
1
vote
0 answers

Cannot get bean of Service with annotation @resource when Spring MVC Integration Disruptor

the code as below: @Controller public class MapEventHandler implements EventHandler{ @Resource VisitorMacService visitorMacService; @RequestMapping("/maptest") @ResponseBody public String maptest(){ return "maptest"; } @Override public void…
1
vote
1 answer

Concern over using log4j2 AsynchronousLoggers in Java EE application

I would like to employ Log4j2 Asynchronous loggers within an Java EE 7 Applicatiosn. This entails using the LMAX disruptor-3.0.0.jar or higher on the classpath. I am concerned this breaks the rule related to starting "user" threads within a Java EE…
Hector
  • 4,016
  • 21
  • 112
  • 211
1
vote
1 answer

WorkerPool example from LMAX Disruptor framework

Looking for a WorkerPool example from LMAX Disruptor Framework. The idea is to use it when we want to make sure that event is only consumed once ( Pollable Channel rather than subscribable Channel)
Harry
  • 528
  • 1
  • 5
  • 21
1
vote
1 answer

how to find a Lmax Disruptor diamond(one producer 5 consumer 1 conclude)example?

i find the user guide of Lmax disrupter in github is very simple, now i have a problem with one producer and five cosumer, after that i need to conclude the result of the consumer, is there any demo, how to find a Lmax Disruptor diamond(one producer…
dwzhao
  • 87
  • 1
  • 9
1
vote
1 answer

LMAX Disruptor Timeout EventHandler

We have a system using Disruptor framework, it has five registered stages implementing EvenetHandler. The stages work in Sequence, so a request can only move to second stage when the first stage is completed, this movement is maintained by Disruptor…
1
vote
1 answer

Using disruptor in the Java Servlet and handling multiple events

I am using the LMAX disruptor in my web application which takes the http request parameters and handle them to the ringbuffer. 3 event-handlers handle and process data, the final one, saves it to the database. Initialize the ringbuffer once, when…
vvra
  • 2,832
  • 5
  • 38
  • 82
1
vote
3 answers

LMAX Disruptor: Must EventHandler clone object received from EventHandler#onEvent

I have an application with Many Producers and consumers. From my understanding, RingBuffer creates objects at start of RingBuffer init and you then copy object when you publish in Ring and get them from it in EventHandler. My application LogHandler…
user1565007
0
votes
0 answers

How to instantiate LMAX Disruptor for sequential processing

Version 3 of the LMAX Disruptor deprecated the constructor that takes an Executor. So the following gives a compile warning: Disruptor(eventFactory, bufferSize, Executors.newSingleThreadExecutor()) The new approach uses the ThreadFactory. How do I…
Lukasz G.
  • 119
  • 1
  • 10
0
votes
1 answer

How to convert ReentrantReadWriteLock logic to LMAX Disruptor with barriers

I have a shared collection an ArrayList and also i use a ReentrantReadWriteLock lock to secure the entering on a critical area from different threads. My threads are three a writer,read,delete thread. i acquire the correct lock on each case. The…
Mixalis Navridis
  • 181
  • 2
  • 15