question

Upvotes
Accepted
48 4 7 15

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 512.0 KiB each and 1.0 MiB total.

1 Answer

Upvotes
Accepted
24.6k 86 10 22

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 512.0 KiB each and 1.0 MiB total.