question

Upvotes
Accepted
3 3 2 6

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 512.0 KiB each and 1.0 MiB total.

Monitored by @Warat B.

1 Answer

· Write an 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 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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