I'm writing a back-end application which is supposed to receive request from clients and perform some operations with ignite cache. The issue is I need low-latency response time and recreating Ignite
client node to perform some operation with cache is totally unacceptable.
Is it common to create Ignite
client node once on application startup and then use it any time the back-end received request from client that requires some operations with Ignite cache. I mean something like that:
public class Handler{
private static final Ignite igniteClient;
static{
Ignition.setClientMode(true);
igniteClient = Ignition.start();
}
private final Semaphore semaphore = new Semaphore(5);
private void handle(){
semaphore.acquire();
//use igniteClient
semaphore.release();
}
}