Skip to main content

Connection endpoints

Default endpoint​

The default endpoint for NGS is tls://connect.ngs.global.

It is geo-balanced and will route to the closest NGS server.

Regional endpoints​

Regional endpoints are not geo-balanced and will return all NGS servers in the region.

note

Since regional endpoints are not geo-balanced, they will often have higher latencies than using the default endpoint.

EndpointRegion
tls://asia.geo.ngs.globalAsia-Pacific
tls://eu.geo.ngs.globalEurope
tls://us.geo.ngs.globalU.S.
tls://west.us.geo.ngs.globalWestern U.S.
tls://east.us.geo.ngs.globalEastern U.S.

Testing latency​

Latency to the NATS Servers returned by an endpoint can be tested using the nats rtt command. For example, to test latency to the default endpoint run:

nats rtt -s tls://connect.ngs.global

WebSockets​

WebSocket-based connections are supported as well for any of the above endpoints, using the scheme: wss:// such as:

nats -s wss://eu.geo.ngs.global pub test ''