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

Best Answer

  • umer.nalla
    Answer ✓

    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.