Synadia Cloud
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. It will also detect if a connection originates from a certain cloud provider, and prefer that cloud provider if so.
Cloud Provider Endpoints
Cloud provider endpoints are geo-balanced and will route to the closest NGS server hosted at a specific cloud provider.
Endpoint | Cloud Provider |
---|---|
tls://aws.cloud.ngs.global | Amazon Web Services |
tls://az.cloud.ngs.global | Microsoft Azure |
tls://gcp.cloud.ngs.global | Google Cloud Platform |
Regional Endpoints
Regional endpoints are not geo-balanced and will return all NGS servers in the region.
Since regional endpoints are not geo-balanced, they will often have higher latencies than using the default endpoint or cloud provider endpoints.
Endpoint | Region |
---|---|
tls://asia.geo.ngs.global | Asia |
tls://eu.geo.ngs.global | Europe |
tls://us.geo.ngs.global | U.S. |
tls://west.us.geo.ngs.global | Western U.S. |
tls://east.us.geo.ngs.global | Eastern 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 ''