Multiple refresh messages

Lalit
Lalit Newcomer
edited March 18 in RFA

Hi, I am incorporating requesting refresh message in my application. On doing so in some particular cases, I am getting multiple refresh message for same requested item. Is multiple request messages are not wanted or harmful some way??

Best Answers

  • Gurpreet
    Gurpreet admin
    Answer ✓

    Hello @Lalit

    Firstly, RFA is feature complete and I would strongly encourage you to consider EMA API, which is considerably easier to use and will be supported for long time going forward.

    An application might receive multiple refresh messages. This is usually when requesting level 2 data where the refresh message is very large and hence split into multi-part refreshes. Also, at any time the infrastructure can re-sync with consumer and send an unsolicited refresh.

    Which of these two scenarios are you dealing with? It would be helpful to show the actual message logs received by the application.

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @Lalit

    Typically, the ADS doesn't support multiple requests of the same items. Therefore, RFA will manage this on behalf of the application. For example:

    1. The client calls the registerClient with LSEG.L. RFA will open a new item stream (LSEG.L) to ADS.
    2. RFA will receive a refresh message from ADS. Then, RFA will dispatch a refresh message to the first client.
    3. The second client calls the registerClient to request LSEG.L. RFA will not open a new stream but it will use the existing stream of LSEG.L to get a new refresh message.
    4. RFA will recieve a refresh message from ADS on the existing stream. Then, RFA will dispatch it to the second client.
    5. After that, all messages received on this stream will be fanned out to both clients.

    This is how RFA handles requesting of the same item.