How can I save raw events of real time feeds?

what is the best way to save RespMsg(from RFA C++ API) raw events to memory / disk and decode later when needed? The idea is to do as little as possible with the feeds and parse/decode(like a replay) them when needed. Thanks

Best Answer

Answers

  • Hi @jzhao

    In general, you will have to make a copy of the data within your onRefresh callback as data within this callback is short-lived. Refer to the answer here. While that specific answer is related to the Java API, the same concepts are applied to C++.

  • Thanks Nick. The answer you referred to above mentioned to copy data to local FieldEntry (B). The question is if the copy of such like FieldEntryList is parse-able using the same decode logic? even though it means that I need to build a static (local) clone of the one from callback.