question

Upvotes
Accepted
46 4 5 10

multithreading callback

Hello, everyone, Is it possible that I create one OmmConsumer instance, register some rics for quote and the callback function OnRefreshMsg and OnUpdateMsg will be called by multiple threads ? It seems that currently only one thread is callback, which may suffer performance problem. Thanks

elektronrefinitiv-realtimeelektron-sdkrrtema-apielektron-message-apimulti-threading
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
20.3k 73 10 20

Hi @wangfugen

Please refer to the 410__MarketPrice__HorizontalScaling example which demonstrates how to use more than one OmmConsumer and thereby use additional thread to handle callback.


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