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.

Hello @wangfugen

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?

If yes, please click the 'Accept' text next to the reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,


AHS


1 Answer

· Write an Answer
Upvotes
Accepted
25.3k 87 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.