An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
Hello Nikolai Tyumin
it sounds like you’re seeing high latency and timeouts (“context deadline exceeded”) when hitting your API and serving static content from your single Azure VM across the globe. A few things can throttle traffic or add latency:
There are no hidden Azure network restrictions impacting your application. The observed errors are due to expected global latency and a single-VM architecture without edge delivery. Microsoft documentation explicitly recommends CDN/Front Door and horizontal scaling to address these scenarios.
- VM network bandwidth limits • Every VM SKU has a maximum network throughput (e.g. 500 Mbps, 1 Gbps, etc.). If you’re on a smaller SKU (B-series, A-series), you’ll see limited throughput and throttling under load.
- Check your VM size/series and compare against the published network bandwidth limits: https://learn.microsoft.com/azure/virtual-machines/sizes
- Use Azure Network Watcher Connection Troubleshoot to validate connectivity and latency: https://learn.microsoft.com/azure/network-watcher/network-watcher-check-connectivity
- Windows Server’s built-in firewall or connection limits might be set too low for high-concurrency tests. Verify inbound rules and maximize half-open connections if you’re doing massive concurrent calls.
- A single VM in one Azure region will naturally have hundreds of milliseconds of round-trip to distant locations. • For static assets, front them via Azure CDN or Front Door to cache them at POPs closer to your users: https://learn.microsoft.com/azure/cdn/
- For your API, consider deploying additional instances in regions closer to your traffic using Traffic Manager or Front Door so your clients hit the nearest endpoint.
- Under heavy load, your app may exhaust CPU, memory, or ephemeral ports, causing 500 errors and timeouts. Monitor VM metrics in Azure Monitor and scale out to a VM Scale Set behind a Load Balancer if needed: https://learn.microsoft.com/azure/virtual-machine-scale-sets/
Should there be any follow-up questions or concerns, please let us know and we shall try to address them.
If these answer your question, click "Upvote" and click "Accept Answer" which may be beneficial to other community members reading this thread.