question

Upvotes
Accepted
87 7 13 27

How to realize "Redundant & backup" with EMA(C++)

hello:

there are two machine "A"&"B" to trans data from THOMSON REUTERS;

I develop the consumer APP with EMA(c++);

now I connect to A with codes as follows:

"OmmConsumer consumer( OmmConsumerConfig().host( "140.143.1.214:14002" ).username( "user1" ) );"

so my question is how can I connect to another machine B at the same time.

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

@luxiangyuan, thank you for your participation in the forum. Are any of the replies below satisfactory in resolving your query? If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question. Thanks, AHS

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

hi
I am so sorry, as I busied on others works,

I can not find "Accept" text.

could you please show me more details?

thanks a lot

@luxiangyuan, beneath every answer you can see the text "Accept", which you can click on if that answer was the best for you:

Once an answer has been accepted it appears on a green background, and the "Accept" text is replaced with "Unaccept", which is the case for this particular question.

accept.png (2.5 KiB)

Hi Christiaan Meihsl

I get it, thank you very much,

for the future, I will follow your suggestion.

thanks again.

Christiaan Meihsl

Upvotes
Accepted
25.3k 87 12 25

Hi @luxiangyuan

Please refer to the Channels and ChannelSets section of this EMA Config Overview article.

Using a ChannelSet will allow you to specify two or more servers to which the API can automatically attempt connection in the event of a server being unavailable at connection time or some later point in time.

It will not create two connections 'at the same time'. For this you would need to use two OmmConsumer instances - each with its own connection to the same or different server. Two OmmConsumer is typically used when you want to 'horizontally scale' i.e. split your subscriptions between two different servers (in order to spread load etc).

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.

Upvotes
87 7 13 27

hi umer

thanks for your answer;

but I have another question, would you please help me?

do you know which constumer develop trading system with EMA(C++)?

we plan to develop the trading system with EMA (C++), but I found almost all of the developers develop with EMA(JAVA), So as you know, I am not sure whether the EMA(C++) works welll.

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.

Upvotes
25.3k 87 12 25

Hi @luxiangyuan

I am personally aware of teams using C++ for production applications in an international bank. We cannot name clients or provide more details due to client confidentiality and privacy rules etc.

Also, as you will note from this forum, although more questions are posted about EMA Java, there are many questions regarding C++ which does provide an indication that developers are using EMA C++.

My personal experience with some of our clients is that many of their developers only program in Java and fewer in C++. Therefore this reason - along with others - could explain why EMA Java is more commonly used.

Regards,

Umer

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.