High Performance Computing
@@ -139,43 +159,34 @@Apache Ignite computational features include
-
-
- Dynamic Clustering -
- Fork-Join & MapReduce Processing -
- Distributed Closure Execution -
- Load Balancing and Fault Tolerance -
- Distributed Messaging and Events -
- Linear Scalability -
Clustering
Apache Ignite provides one of the most sophisticated clustering technologies on the Java Virtual Machine (JVM). It's advanced clustering features are fully exposed to developers and offer
-
-
- Dynamic topology management
- Automatic discovery on LAN, WAN, and AWS
- Automatic “split-brain” (i.e. network segmentation) resolution
- Unicast, broadcast, and group-based message exchange
- On-demand and direct deployment
- Support for virtual clusters and node groupings -
Distributed Messaging
@@ -189,9 +200,72 @@Example
+ +Send and receive unordered messages
+ +
+ try (Grid grid = GridGain.start("examples/config/example-compute.xml")) {
+ // Add unordered message listener on all grid nodes.
+ grid.message().remoteListen("MyUnorderedTopic", new GridBiPredicate<UUID, String>() {
+ @Override public boolean apply(UUID nodeId, String msg) {
+ println("Unordered message [msg=" + msg + ", fromNodeId=" + nodeId + ']');
+
+ return true; // Return true to continue listening.
+ }
+ }).get();
+
+ // Send unordered messages to all remote nodes.
+ for (int i = 0; i < 10; i++)
+ grid.forRemotes().message().send("MyUnorderedTopic", Integer.toString(i));
+ }
+
+ Send and receive ordered messages
+ +
+ try (Grid grid = GridGain.start()) {
+ // Add ordered message listener on all grid nodes.
+ grid.message().remoteListen("MyOrderedTopic", new GridBiPredicate<UUID, String>() {
+ @Override public boolean apply(UUID nodeId, String msg) {
+ println("Ordered message [msg=" + msg + ", fromNodeId=" + nodeId + ']');
+
+ return true; // Return true to continue listening.
+ }
+ }).get();
+
+ // Send ordered messages to all remote nodes.
+ for (int i = 0; i < 10; i++)
+ grid.forRemotes().message().sendOrdered("MyOrderedTopic", Integer.toString(i), 0);
+ }
+
+ Example 3 Content
+and so on ...
+