Questions about hosting WebSocket NodeJS server on Azure

Stéphane Smirnow 20 Reputation points
2023-08-11T22:06:30.1566667+00:00

Hello from France. I would like to migrate a NodeJS socket webserver from a local Linux virtual machine to Azure, but I am not sure of which architecture I should chose as I've been said that Azure limits the number of WebSocket connections (actually, my website can welcome from 10 to 100 concurrent users, each holding his own WebSocket connection). Taking into account that the said website is totally free and is not designed to generate profits, would you have any hint on what viable architecture/subscription plan I could/should chose if I decide to migrate to Azure?

Thank you very much in advance.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,644 questions
0 comments No comments
{count} votes

Accepted answer
  1. TP 116.7K Reputation points
    2023-08-12T00:59:13.88+00:00

    Hi,

    Based on your concurrent WebSockets requirement the minimum Azure App Service SKU you could use would be Basic B1. Basic B1 supports up to 350 connections per instance, and you can have up to 3 instances if you scale out.

    https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits#app-service-limits

    You will need to test by running your application under Basic B1 to see if it has enough power or you need larger size, if you need multiple instances or if one instance is enough, etc.

    Please click Accept Answer if the above was useful.

    Thanks.

    -TP


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.