Need to publishing multiple Rics in Parallel to avoid performance issues

Options
nsharma
nsharma Newcomer
edited July 11 in EMA

Currently when trying to publishing 10000 Rics one by one so it is taking almost 40-45 mins to publish but need to publish the records in few mins with Parallel publishing if possible from the number of set to be publised at a time.

I am using the NiProvider.

TrepPublishingClient appClient = new TrepPublishingClient();

appClient.setServicename("ABC");

appClient.setName("PQR");

OmmConsumer consumer = null;

consumer = EmaFactory.createOmmConsumer(EmaFactory.createOmmConsumerConfig().host(host).username(username));

ReqMsg reqMsg = EmaFactory.createReqMsg();

consumer.registerClient(reqMsg.domainType( EmaRdm.MMT_LOGIN ), appClient, consumer);

consumer.registerClient(reqMsg.clear().serviceName("ABC").name("PQR"), appClient, consumer);

Thread.sleep(1000); // API calls onRefreshMsg(), onUpdateMsg() and onStatusMsg()

if (consumer != null) consumer.uninitialize();

Answers