ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vkulichenko <valentin.kuliche...@gmail.com>
Subject Re: Question about IgniteQueueExample
Date Tue, 19 Apr 2016 20:45:50 GMT

Can you please properly subscribe to the mailing list so that the community
can receive email notifications? Here is the instruction:

Tommy Yeh wrote
> I am new to the Ignite.
> Try to understand the IgniteQueue from 
> https://github.com/apache/ignite/blob/master/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteQueueExample.java
> <https://github.com/apache/ignite/blob/master/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteQueueExample.java>
> Two scenarios as below:
> 1. broadcast each node to wait for data from queue then put data to queue.
> 2. put data to queue then broadcast each node to read data from queue.
> The example seems is second scenario.
> Is first scenario possible to do ?
> Thanks for your help!

The example broadcasts the closure only to demonstrate that you can
manipulate with the queue from any node in the topology. You can have
several clients that will write or read to/from the queue and the whole
process will be globally synchronized. So yes, the first scenario is
definitely possible.


View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Question-about-IgniteQueueExample-tp4317p4339.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

View raw message