Load balancer

How Blazeauth resolves the right WebSocket endpoint before a session starts.

Load balancer is the HTTP entry point used before opening a WebSocket session. Client makes one small HTTPS request and receives a ready-to-use WebSocket endpoint.

What it does

  • Selects a server compatible with the requested API version.
  • Avoids sending clients to offline or overloaded nodes.
  • Prefers a nearby server when client location can be determined.
  • Returns one final endpoint, so client does not need to probe multiple nodes.

Why it is fast

The balancer adds only one compact HTTPS request before the WebSocket handshake. Client does not need to test several servers on its own. By design, the balancer request path is intentionally lightweight, so under normal conditions its own processing overhead should stay small compared to the network round-trip itself. Exact latency is not guaranteed and still depends on client-to-server distance, TLS handshake cost, and infrastructure health.

Request

Current client flow uses:

GET https://balancer.blazeauth.net/v1/websocket/server
  • v1 is the API version segment.
  • Client should use the path that matches the WebSocket API version it supports.

Success response

{
  "endpoint": "wss://eu-1.blazeauth.net/ws",
  "location": "Frankfurt"
}

Prop

Type

Error response

{
  "error_message": "no servers are currently available",
  "error_code": 100
}

Prop

Type

Balancer error codes

CodeErrorWhat it means
100no servers are currently availableBalancer currently has no usable WebSocket nodes to return.
101no servers are currently onlineMatching servers exist, but none of them are currently online.
102no servers with this version are availableNo server is currently available for the requested API version.

Client rules

  • Call the balancer when starting a brand-new session.
  • Treat endpoint as the final WebSocket URL. Do not rewrite it.
  • Use location only for UI, logs, diagnostics, or telemetry.
  • Current balancer contract does not issue a separate handshake token.

On this page