Load Balancer Server

TsgcWebSocketLoadBalancerServer — distribute WebSocket and HTTP connections across a pool of back-end servers using random or fewest-connections algorithms. Backup servers auto-register with the load balancer and stay connected through an optional auto-restart watchdog.

TsgcWebSocketLoadBalancerServer

Sticky-session-aware load balancer dedicated to sgcWebSockets backends. Backends register themselves through their built-in LoadBalancer property.

Klasa komponentu

TsgcWebSocketLoadBalancerServer

Protokół

WebSocket / HTTP — RFC 6455

Platformy

Windows, macOS, Linux, iOS, Android

Edycja

Enterprise

Drop the component, set a few properties, go

Drop a TsgcWebSocketLoadBalancerServer, bind a TLS port, point your backends at it.

uses
  sgcWebSocket_LoadBalancer_Server;

var
  LB: TsgcWebSocketLoadBalancerServer;
begin
  LB := TsgcWebSocketLoadBalancerServer.Create(nil);
  LB.Port := 443;
  LB.SSL := True;
  LB.SSLOptions.CertFile := 'server.pem';
  LB.SSLOptions.KeyFile  := 'server.key';

  // Each backend server registers itself by setting LoadBalancer on its own server component
  LB.OnServerConnect    := LBServerConnect;
  LB.OnServerDisconnect := LBServerDisconnect;

  LB.Active := True;
end;

Co jest w środku

18 published properties, 9 methods, 22 events — pulled from the component reference.

Connection

Published properties: Active, Port, Bindings.

Messaging

Methods: Broadcast, WriteData, Ping.

Reliability

Published properties: LoadBalancer, FallBack.

Security

Published properties: SSL, SSLOptions, SecurityOptions.

Lifecycle

Events: OnConnect, OnDisconnect, OnHandshake.

Data

Events: OnMessage, OnBinary, OnFragmented.

Specyfikacje i źródła

Autorytatywne źródła protokołów implementowanych przez ten komponent.

Dokumentacja i dema

Bezpośredni link do dokumentacji komponentu, gotowy do uruchomienia projekt demo i pobieranie wersji próbnej.

Pomoc online — TsgcWebSocketLoadBalancerServer Pełna dokumentacja właściwości, metod i zdarzeń tego komponentu.
Demo Project — 01.WebSocket\05.LoadBalancer Gotowy do uruchomienia projekt przykładowy. Dostarczany w pakiecie sgcWebSockets — pobierz wersję próbną poniżej.
Dokument techniczny (PDF) Funkcje, szybki start, przykłady kodu dla Delphi i C++ Builder oraz źródła pierwotne — tylko ten komponent.
Podręcznik użytkownika (PDF) Kompleksowy podręcznik obejmujący każdy komponent biblioteki.

Scale Out Your WebSocket Servers

Pobierz bezpłatną wersję próbną i uruchom sgcWebSockets behind a load balancer in minutes.