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 ...