question

Upvotes
Accepted
48 8 18 20

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-sdkema-apirrtelektron-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

· Write an Answer
Upvotes
Accepted
25.3k 89 12 25

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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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