I'm thinking about using azure for my node js app. The app uses Pomelo, which is a framework built on top of socket.io. The server also uses redis for scalability purposes.
I'm kind of confused as to which subscription I should look into.
Let me detail my needs :
- Scalability : The server is stateful. This means if I scale, the other pods must die only if there's no connection to them.
- Deployment : If I deploy a new version, because the server is stateful, I want to gradually redirect the traffic to the new servers, until there is no connection on the previous version servers.
The two options that seem the most fit for these scenarios are azure web app service and azure container instances.
Ideally, I'd like to go with azure web app as it seems simpler to handle. I don't know if this subscription offers that type of customization. On the other hand, I'm almost certain I can do this with an azure container intances and AKS.
Does someone have experience with this? Thank you!