RTC Forums
November 23, 2024, 11:36:29 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Login
Register
RTC Forums
>
Subscription
>
Support
>
how to use RtcDualDataClientLink
Pages: [
1
]
« previous
next »
Print
Author
Topic: how to use RtcDualDataClientLink (Read 4317 times)
mkurnia
RTC Expired
Posts: 21
how to use RtcDualDataClientLink
«
on:
April 15, 2016, 04:29:09 PM »
hi danijel,
I have two addresses connected to the server with the address 192.168.100.10 and 192.168.100.20. I've tried using 2 rtchttpclient and 1 RtcDualDataClientLink. My goal, when the server with the address 192.168.100.10 out for connections. then RtcDualDataClientLink will use the server address 192.168.100.20. but it did not happen. Please you advise
thankyou
Logged
D.Tkalcec (RTC)
Administrator
Posts: 1881
Re: how to use RtcDualDataClientLink
«
Reply #1 on:
April 15, 2016, 05:01:10 PM »
Here is a copy/paste of the TRtcDualDataClientLink component description:
You can use TRtcDualDataClientLink components to create a small pool of client connections. When posting requests through this component, you will never really know which connection the request will be posted from, since the component itself will determine that, depending on the number of currently active requests on each connection component.
In other words ... when posting a request through a TRtcDualDataClientLink component, the request will be placed into the request queue of the Client component with the smallest number of currently pending requests. This simplifies working with multiple connections going to the same Server, but is NOT really suitable for working with multiple Servers, unless ALL of your Servers are ALWAYS accessible and interchangeable, so it does NOT matter to which Server which request would go.
If you want your Client to work with multiple Servers and switch from one Servers to the next if the previous one became inaccessible, you have to implement this manually. There are NO components in the RTC SDK which would work with multiple Servers and automatically switch from one Server to the next, based on Server accessibility.
PS. When working with multiple interchangeable Servers, the most common scenario is to place a Load Balancer between your Clients and your Servers. Your Clients would be connecting to your Load Balancer (one Address) and the Load Balancer would manage connections to your Servers (any number of connections to any number of Servers), keep track of each Servers status (accessibility and load) and make decisions about which request should be forwarded to which Server.
Best Regards,
Danijel Tkalcec
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Dashboard
-----------------------------
=> General
=> 3rd-Party
=> Quick Start
-----------------------------
Subscription
-----------------------------
=> Support
Loading...