Theory: Azure Websockets

12/16/2019

Is it possible to consume an external (to Azure) API that requires you to establish a wss connection to receive notifications of changes in some kind of Azure container (Kubernetes/Durable Function)?

Or do I need to run a Virtual Machine with a background service keeping the socket alive until it's got no more data to send (hours). No UI.

https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-overview?tabs=csharp

Durable functions look promising but I'm unsure if these will cover my requirements. Any advice welcomed.

-- user12548084
azure
azure-durable-functions
c#
kubernetes
websocket

2 Answers

12/16/2019

Yes, you should be able to use WebSocket connections to services deployed on Kubernetes. And also the other way around where services in Kubernetes is WebSocket clients with connections to external services.

-- Jonas
Source: StackOverflow

12/16/2019

I haven't tested, but Azure Web App supports Web Socket. As you can host Azure Functions in the same App Service which is running your web app, I think it's possible to support web sockets on your functions with durable function.

Another point that leads me to think this, is the native support of Azure Functions to SignalR Service, which runs on Web Socket too.

-- Thiago Custodio
Source: StackOverflow