Hi.
I'm sending a request with 1700 RIC codes in the form of a batch.
It is necessary that the response for all codes does not exceed 0.5 seconds.
An example of my request.
OmmConsumer consumer = EmaFactory.createOmmConsumer(EmaFactory.createOmmConsumerConfig().host(host).username(user));
ElementList batch = EmaFactory.createElementList();
OmmArray ommArray = EmaFactory.createOmmArray();
if(!codesList.isEmpty()) {
for (String code : codesList) {
ommArray.add(EmaFactory.createOmmArrayEntry().ascii(code));
}
batch.add(EmaFactory.createElementEntry().array(EmaRdm.ENAME_BATCH_ITEM_LIST, ommArray));
}
ReutersConsumer reutersConsumer = new ReutersConsumer();//implements OmmConsumerClient
consumer.registerClient(EmaFactory.createReqMsg().domainType(EmaRdm.MMT_MARKET_PRICE).serviceName(feedName).payload(batch).interestAfterRefresh(false), reutersConsumer);
Now the response takes about 3 seconds.
How can I organize my code to achieve the fastest possible response?