Reputation: 11
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 internally.
We have problem with the third stage, it's the bottleneck which takes lot of time as it makes different HTTP calls and stores response in the request object.
So, we want to move the request(with whatever response it has) ahead with the fourth and fifth stage after some time has been spend in the third stage.
How can i timeout any specific stage(in this case Third stage) and forcefully move the request to the next stage ?
Or,
Is there a way to register some event which gets triggered after some defined timeout, this could be something like system level timeout ?
Upvotes: 1
Views: 556
Reputation: 1269
A solution we tried is
Solution needs writing our own event processor which is interrupt aware and a provision to add event stages dynamically to the disruptor
Upvotes: 1