Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question

multiple event handlers fifo grouping

We're looking at implementing FIFO grouping, but it may be complicated, and we're curious about combining more than one aspect of processing, thus our subject; multiple event handlers fifo grouping.

1) Is it possible or is it to be avoided?

2) Will the different handlers manage the fact that their grouping may not be based on the same fields as other handlers?

3) Will thread usage remain constant across different handlers; imagine we set max to 16, will handler1 always use the same amount?



asked 2018-02-19 10:42:01 -0500

jb.ext gravatar image
edit retag flag offensive close merge delete

4 Answers

Sort by ยป oldest newest most voted

Once you've sub-classed by FifoGroup, do you still need more processing (Threads) per fifo group?

answered 2018-02-20 09:14:46 -0500

edit flag offensive delete link more


A / \ B C / \ D /\ E F


Take the diagram above. Imagine we implement grouping in the abstract class 'C'. We wish the classes 'E' & 'F' and any other descendants it might have to use FIFO based on the grouping we have declared in 'C'. As to the question about threading, it was intended mostly as a 'what will your algorithm do in this case' type of question, asked so that we wouldn't have to infer its behavior based on our testing. Additionally we were curious as to whether it was even possible to have different grouping declared at the 'E'/'F' layer instead of at 'C', and yet use a template based on 'C'? The second aspect of the question concerns the basic approach. Has this been tried before, in production somewhere or even in a test, and if so were there any issues?

Regards John

jb.ext gravatar imagejb.ext ( 2018-02-20 11:25:42 -0500 )edit

This approach seems fine, each class will be handled separately.

answered 2018-02-20 06:22:01 -0500

Ester gravatar image
edit flag offensive delete link more

Let's imagine I have an abstract base class, and the fifo grouping property is declared inside that class. I have a number of clients that derive from that class but that I wish to process separately, and therefore I want to have an individual handlers for each of those classes. Is there any problem with this approach.



answered 2018-02-20 03:39:58 -0500

jb.ext gravatar image
edit flag offensive delete link more

Hi, There can be only one FG property per type. Please elaborate regarding the use case.

Regards, Ester.

answered 2018-02-20 02:59:21 -0500

Ester gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-02-19 10:42:01 -0500

Seen: 145 times

Last updated: Feb 20 '18