LoadBalancing Sample
Purpose
sample demonstrates usage the Load Balancing and Fault Tolerance features.
Getting Started
- Build or compile both projects.
- Launch the four servers (via the menu option: RemObjects | Launch Server Executable)
and activate different servers, e.g. Alfa Server for 1st server, Beta Server for 2nd server, etc.
- Ensure that LoadBalancingClient is the selected project and run it.
- Check that the client works as expected.
- Fault tolerance. Deactivate some servers and check that client use anothe active server to perfom calculation.
- Load balance. Check that next service call will be performed by another active server.
- Server probing. Toggle server activity and perform server probing to include/exclude server from using by client.
Examine the Code
- Look for examples of using properties of the channel coresponding to Load Balancing and Fault Tolerance : DispatchOptions, ProbeServers, ProbeFrequency and especially ServerLocators.