Data Recovery

HI Everyone,

I'm in the process of writing a listener using rtsdk. It's not clear in the doc how does recovery works. For instance I connect real time in the morning all goes well and at 2pm my listener goes down. At 3 pm the listener gets back online. Is there a way to recover the missing data from 2pm to 3pm or do I need to start with a fresh snapshot.

Thank you,
Richard

Best Answer

  • chavalit-jintamalit
    Answer ✓

    Hi @Neon

    For "Streaming data", if your connection is lost, you would not be able to request the lost data during the connection lost.

    By default, EMA will try to recover the connection lost for you. (You can check recoverXXX parameters from EMA configuration guide).

    When it successfully recovers the connection, your application will receive a new refresh message. So your application should use this refresh message as a new cache.

Answers

  • Hello @Neon

    While my colleague @chavalit.jintamalit gives you a clear explanation about real-time data behavior, you set the EMA reconnection behavior from the following EmaConfig.xml parameters:

    • ReconnectAttemptLimit
    • ReconnectMaxDelay
    • ReconnectMinDelay

    Please find more detail about the above parameter in the EMA Configuration guide document (Java and C++ download links)