question

Upvotes
Accepted
26 1 3 12

WarmStandbyChannelSet vs ChannelSet

Hi I am using Real-Time-SDK-2.0.6.L1, C++ EMA. Is using WarmStandbyChannelSet makes usage of ChannelSet redundant. What kind of additional resiliency I get by using both of these features ?

ema-apic++failoverresiliencewarm-standby
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.

Upvote
Accepted
79.7k 257 52 74

@thilinaillangasinghe

You can specify both WarmStandbyChannelSet and ChannelSet configurations in a consumer but API will pick the WarmStandByChannelSet first. If it is unable to connect to the servers in the WarmStandByChannelSet, it will use the ChannelSet configurations instead. Therefore, WarmStandbyChannelSet and ChannelSet can't be active at the same time for a consumer.

Both options are valid so it depends on the requirements. WarmStandbyChannelSet provides better resiliency than ChannelSet. However, it uses more computing resources than ChannelSet because it needs to establish and maintain connections to all servers in the warm standby group. Moreover, you need to enable the warm standby feature on the servers (ADS).

In summary, if you want better resiliency (faster recovery), you need to use WarmStandbyChannelSet. You may set the ChannelSet as a backup mechanism to handle a situation when all servers in the WarmStandbyChannelSet are down.

1660718016191.png


1660718016191.png (52.9 KiB)
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
79.7k 257 52 74

@thilinaillangasinghe

You can refer to the WarmStandbyChannelSet configuration in the EMA Configuration Guide.

1660703056916.png

The ChannelSet is a failover mechanism. There is one connection at a time. If the connection to the first channel has been disconnected, API will fail over to the next channel in the ChannelSet. Once the connection has been established, API will resubscribe to all items in the watch list.

With the WarmStandbyChannelSet, a consumer establishes connections to both an active server and standby servers. The standby servers are aware of items an application has subscribed for so during a failover APIs don't need to re-subscribe items to the standby servers. Therefore, Warm Standby can reduce overall recovery time.

1660703607217.png

For more information, please refer to the following articles.


1660703056916.png (79.7 KiB)
1660703607217.png (139.3 KiB)
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
26 1 3 12

Thanks!. In summery, both ChannelSet and WarmStandbyChannelSet are failover mechanisms and WarmStandbyChannelSet failover mechanism is faster (no need to re-subscribe) and supports service-down events as well. This means, I have no reason to go with ChannelSet instead of WarmStandbyChannelSet right ? Still I couldn't understand in which situations should I choose ChannelSet instead of WarmStandbyChannelSet and in which situations should I go for both.

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.