Using EMA C#, I wonder to know if there is a limit of the number of subscriptions/RequestMsg per OmmConsumer ?
In fact I have 10000 rics that I need to monitor them, thus I create an OmmConsumer object and then using this consumer I create my subscritpions using :
var ommConsumerConfig = new OmmConsumerConfig(options.Value.RootDirectory)
.ConsumerName(consumerName)
.UserName(options.Value.UserName);
var consumer = new OmmConsumer(ommConsumerConfig);
// 10000 rics
foreach (var ric in rics)
{
var requestMsg = new RequestMsg();
requestMsg.ServiceName(ric.Source).Name(ric.Ric).DomainType(6);
var id = consumer .RegisterClient(requestMsg, this);
}
//….
Now what I can see is that :
1- 🤨 Once I create the consumer memory increase by 500Mb
2-🙄 After the 1000 subscriptions I cannot receive responses for the rest of rics
So is it good to use the same consumer for all susbcriptions ? and why memory increase by 500Mb for each new consumer ?
Reagrds,
Moez