question

Upvotes
Accepted
36 6 8 22

How to identify if all the subscribed symbols in the OmmArray has received refresh message? How to exit after receiving refresh message of all the subscribed symbols?

elektronrefinitiv-realtimeelektron-sdksubscriptionrefresh
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
23k 22 9 14

Hello @yajnasteju,

If you require a streaming update,

I would take a generic approach, not specific to Elektron, rather analogous to other use cases for asynchronous processing of multiple parallel requests. I would keep a map of requested symbols, and mark completion on each receipt of either data refresh or negative status. Once all the responses have been received, I would unitialize the consumer and exit.

If you are only looking for a single refresh for each symbol, I would consider a snapshot request, interest after refresh = false.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea