Cache nodes

You can logically group together nodes that are storing cache data or all client nodes accessing the data cache. We will look at affinity and cache grouping in Chapter 4, Exploring the Compute Grid and Query API.

Create a client to access cache data in an infinite loop:

package com.packt;import org.apache.ignite.Ignite;import org.apache.ignite.IgniteCache;import org.apache.ignite.Ignition;import org.apache.ignite.configuration.IgniteConfiguration;public class ClientAccessCache { public static void main(String[] args) throws InterruptedException{    IgniteConfiguration cfg = new IgniteConfiguration();     cfg.setPeerClassLoadingEnabled(true);     //Client mode is ON     cfg.setClientMode(true);     try (Ignite ignite = Ignition.start(cfg)) { //Access ...

Get Apache Ignite Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.