question

Upvotes
Accepted
1 0 1 3

About off-stream contribution using EMA api

I am trying to create an off-stream contribution app using ema api


I was initially using the on-stream api

long handle = consumer.registerClient( EmaFactory.createReqMsg().serviceName("ATS").name(itemName), appClient);


But then I was told if I register the ric name, its considered on-stream api and it has some disadvantages.


Instead I should use off-stream api where I just create a client and start contributing using the generic handle that I receive.

long handle = consumer.registerClient( EmaFactory.createReqMsg().serviceName("ATS"), appClient);


But this just doesn't work. I am getting errors that the request is missing the name and invalid handle.


Could someone clarify on-stream vs off-stream contribution for me please.

elektronrefinitiv-realtimeelektron-sdkema-apirrt
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.

Hello @sanjeet.karamchandani

Please be informed that the question has been moved to Elektron/EMA forum.

Hello @sanjeet.karamchandani

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?


If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question.

Thanks,


AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,
AHS

1 Answer

· Write an Answer
Upvote
Accepted
24.6k 54 17 14

Hello @sanjeet.karamchandani

The difference between the on-stream and off-stream posts are the following:

  • On-Stream Post: Before sending an on-stream post, the client must first open (request) a data stream for an item. After opening the data stream, the client application can then send a post. The route of the post is determined by the route of the data stream.
  • Off-Stream Post: In an off-stream post, the client application can send a post for an item via a Login stream, regardless of whether a data stream first exists. The route of the post is determined by the Core Infrastructure (i.e., Refinitiv Real-Time Advanced Distribution Server, Refinitiv Real-Time Advanced Data Hub, etc.) configuration.

In summary, On-Stream Post the application subscribes "ABC.CD" item and then sends the OMM Post message for the "ABC.CD" item data (with calculated fields, extra value, etc) with the "ABC.CD" item stream.

The Off-Stream Post means the application sends the OMM Post message for the "ABC.CD" item data with the Login stream.

I suggest you check the following ATS - Posting articles that give you a step-by-step guide and the example codes.

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.