How to deploy a NodeJS consumer in Azure
I have a consumer/producer NodeJS app I've created that connects to an event broker using the WebSocket protocol. The app on it's own works exactly how it's intended, but I'm unsure on how to deploy this in Azure. I attempted to use the App Service but the app keeps getting terminated and restarted. My assumption here is that the App Service is for web apps and Azure expects the app to be listening on the port specified in the PORT environment variable, but my app doesn't accept web requests because that's not the point of it. It's meant to connect to an event broker and consume events.
Am I using the wrong Azure service? Should I be configuring the app in a different way? Some help would be amazing. Thanks much!