Unable to subscribe 9k rics in single shot
Hi Team,
I am getting below error when I am trying to subscribe 9K TE rics. What are the max number of RICS that I can subscribe at single time?
Query Type: Technical
Operating System: Windows
Compiler: Java & 11
Product Load: EMA Version 3.6.6.0
2022-12-09 10:19:22.521 ERROR 7 --- [ main] c.refinitiv.reps.ema.consumer.Consumer : Failed to rsslElementEntry.encode() while encoding rssl elementlist. Reason='INVALID_DATA'2022-12-09 10:19:22.523 WARN 7 --- [ main] c.refinitiv.ema.access.OmmConsumerImpl : loggerMsg ClientName: ChannelDictionary Severity: Warning Text: RDMDictionary stream was closed with status message streamId 3 Reason State: Closed/Suspect/None - text: "Login stream was closed."
loggerMsgEnd
2022-12-09 10:19:22.523 WARN 7 --- [ main] c.refinitiv.ema.access.OmmConsumerImpl : loggerMsg ClientName: ChannelDictionary Severity: Warning Text: RDMDictionary stream was closed with status message streamId 4 Reason State: Closed/Suspect/None - text: "Login stream was closed."
Best Answer
-
Hello @Maha Rana Parthap Sing ,
The first step I would suggest is to check if the size of the watchlist that is assigned to the user and if it is exceeded by this request.
If the max watchlist assigned is 9k or higher, for EMA subscription, I would suggest splitting request into batches of 2-3K, refer to EMA Java example 370 MP Batch within examples of RTSDK, for the details on requesting batches, and the full details can be found in EMA Developer Guide
Additionally, for mid-to-heavier subscription requirements, you may wish to increase output buffers from the default value, in EMA config, please see this previous discussion thread for more details.
if these two suggestions do not address the issue, the next step to look into is if the consumer is too slow to process the requests, a.k.a. "slow consumer".
It may be relevant to note, that if any of the required requests are for snapshot requests, rather than subscription requests that are continuous, then a snapshot request, once it is processed, does not count toward watchlist max requests anymore. And once a subscription request is unsubscribed, it stops being counted toward the max watchlist as well.
Hope that this information is of help
0
Answers
-
Hi @zoya faberov,
Thanks for the prompt response. I am using the batch ElementList, in single shot it supported 3K records for me. Now, I will split the 9K records into 3 batches (3K, 3K, 3K) and subscribe thrice by calling con.registerClient(parameters.....) 3 times. Could you please confirm if this is right approach to implement?
batch.add(EmaFactory.createElementEntry().array(EmaRdm.ENAME_BATCH_ITEM_LIST, array));
con.registerClient(EmaFactory.createReqMsg().serviceName(service).payload(batch), appC);0 -
Yes, this is it- just make sure that batch is new every time:
ElementList batch = EmaFactory.createElementList();
OmmArray array = EmaFactory.createOmmArray();
array.add(EmaFactory.createOmmArrayEntry().ascii("TRI.N"));
array.add(EmaFactory.createOmmArrayEntry().ascii("IBM.N"));
batch.add(EmaFactory.createElementEntry().array(EmaRdm.ENAME_BATCH_ITEM_LIST, array));Is your infra connectivity RTO, or deployed RTDS, do you know what is your user watchlist size limit? If it's less then 9k, then the total subscription of 9k will not succeed despite the batch size partitioning.
0 -
Hi @zoya faberov,
Our Infra connectivity is via RTO. User watchlist size is unknown at this time, as per the requirement it grows or shrinks dynamically. I have to partition the rics dynamically.
For now, the given information on partitioning/batching is much helpful. Thanks @zoya faberov
0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛