question

Upvotes
Accepted
3 2 1 5

RFASimpleInsert Example : Difference between RespTypeEnum.Refresh and RespTypeEnum.Update in PostMsg payload

I tried RFASimpleInsert example and its working fine for both Refresh and Update. Both verbs modify the data for a RIC, but how this makes differences to Consumer ? What would happen if I use only Refresh for all the updates ?

RespMsg respMsg = newRespMsg();

respMsg.MsgModelType = RDM.MESSAGE_MODEL_TYPES.MMT_MARKET_PRICE;

respMsg.RespType = RespMsg.RespTypeEnum.Update;

respMsg.AttribInfo = attribInfo;

postMsg.Payload = respMsg;

Please clarify.

treprfarfa-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
4.4k 10 6 9

Hi @rvaratharajan

It depends on the server.

Assume that you post to TREP (ADH/ADS) cache and it uses default configuration;

With refresh message, you can create new items within the cache or add new fields to an existing item in the cache. The consumer will receive refresh message from TREP.

With update message, TREP will reject the post if the item is not already in the cache and new fields will not be added to the cache. The consumer will receive update message from TREP.

There are other interactions and TREP configuration may change these behaviors. For detail explanation, you should consult TREP Software Installation Manual.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea