🎄 Happy Holidays! 🥳

Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.

Happy Holidays!

Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.

How to deploy a NodeJS consumer in Azure

Hi all,

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!

Tagged:

Best Answer

Answers