Subscription Liveness - RDP .NET

Hi,

We're using the Refinitiv Data library in a way similar to this example to create a subscription to SQS.

Could you please share the recommended approach to monitor the following aspects:

  • Verifying an active subscription to ensure we continue receiving news.
  • Confirming that the queue is operational and live.

In general, we want a reliable way to verify that our application remains up, active, and consistently delivering news. Any insights or best practices would be much appreciated.

Thank you!

Best Answer

  • nick.zincone
    nick.zincone admin
    Answer ✓

    Hi @lukasz.druczak

    The GetNextMessage(...) is designed to remove the message from the queue.

    Looking deeper, it's worth noting that while the polling appears to be just sitting there waiting for messages to arrive, in reality, within the library it is going through a polling interval, every max N number of seconds. During each poll iteration, this is what can happen:

    1730466515936.png

    Whether any messages arrive or not, normal operation would return an HTTP OK. In the case where no message are available, the polling internally will wait a max of N seconds, otherwise, will return when messages are available. The default is 20 seconds and this is configurable.

    1730466996371.png

Answers