question

Upvotes
Accepted
87 4 4 11

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-sdkrrtema-apielektron-message-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.

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

Upvotes
Accepted
20.3k 73 10 20

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 5.0 MiB each and 10.0 MiB total.

Upvotes
87 4 4 11

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 5.0 MiB each and 10.0 MiB total.

Upvotes
20.3k 73 10 20

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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea