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

Ask Your Question

Is event-based remoting and execution of remote tasks "fair"?


is event-based remoting and/or execution of remote tasks "fair" in FIFO sense? If it is not, is there a possibility of a livelock (a task is not executed for a very long time because it is always pushed back by new tasks)? If a livelock is possible, do you recommend any special configuration to reduce a possibility of a livelock?

asked 2017-06-09 01:59:39 -0500

Alexey Serdyuk gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

Yes - see : EventDrivenRemotingProxyConfigurer.fifo (true)


answered 2017-06-09 05:13:30 -0500

shay hassidim gravatar image
edit flag offensive delete link more


The documentation for a polling container states that it must run in a 1-thread mode to support FIFO (https://docs.gigaspaces.com/xap/12.0/...).

Could you please confirm if this really applies when a polling container is used for an event-based service. If this is the case indeed, than this is performance-killer.

Alexey Serdyuk gravatar imageAlexey Serdyuk ( 2017-06-12 01:23:59 -0500 )edit

Sequencing / ordering will always impact processing throughput. If you would like to increase processing throughput you will need more partitions to spread the activity across additional queues.

I suggest you test this with a single partition and see how it behaves. Later you can scale this. You can consider batching , but this will impact processing implementation.

Another option is FIFO grouping that will provide multichannel processing within a partition.

shay hassidim gravatar imageshay hassidim ( 2017-06-12 05:37:37 -0500 )edit

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: 2017-06-09 01:59:39 -0500

Seen: 60 times

Last updated: Jun 09 '17