eSeGeCe
software
The component TsgcWebSocketLoadBalancerServer has been improved for sgcWebSockets 2024.3.0 version. Now supports the HTTP Protocol, previously only supported WebSockets, and has a couple of new events to fine-tune the HTTP Requests. The Load Balancer server now descends from the TsgcWebSocketHTTPServer, so inherits all the methods and properties of this.
The Load Balancer server it's a descendant of TsgcWebSocketHTTPServer, so read the documentation about the TsgcWebSocketHTTPServer to know how to configure it.
Additionally, the Load Balancer has the property LoadBalancer, which has the following properties:
The Backup Servers (the servers behind the load balancer) can be a TsgcWebSocketServer, TsgcWebSocketHTTPServer or a DataSnap Server.
Those servers have a property called LoadBalancer where you can configure the connection between the LoadBalancer Server and the Backup Servers.
Find below a link to download a compiled demo for Windows which shows how put a Load Balancing Server which forward the HTTP requests randomly to 3 servers.
When you subscribe to the blog, we will send you an e-mail when there are new updates on the site so you wouldn't miss them.