@Augusto Piva Thanks for reaching here.
Azure provides several services that can be used to handle long-lived WebSocket connections, depending on your specific requirements and use case.
Here are some options to consider:
- Azure Web Pub sub- Develop web applications with real-time messaging using Azure Web PubSub, a fully managed service that supports native and serverless WebSockets. Create loosely coupled, scalable applications—including chats, live broadcasting, and IoT dashboards—with the publish-subscribe messaging pattern. Keep your focus on functionality while Web PubSub manages the flow of data and content to your webpages and mobile applications.- https://learn.microsoft.com/en-us/azure/azure-web-pubsub/
- Azure SignalR Service: Azure SignalR Service is a fully-managed service that allows you to add real-time functionality to your applications using WebSockets, Server-Sent Events (SSE), or other real-time protocols. With SignalR, you can easily establish and manage long-lived WebSocket connections between your client applications and your backend services. SignalR also provides features such as automatic scaling, connection management, and message broadcasting. Refer- https://learn.microsoft.com/en-us/azure/azure-signalr/
- Azure App Service: Azure App Service is a platform-as-a-service (PaaS) offering that allows you to host and scale web applications in the cloud. App Service supports WebSockets and provides built-in load balancing and auto-scaling capabilities, making it a good option for handling long-lived WebSocket connections. You can use App Service to host your WebSocket server and connect to external WebSocket endpoints.
-
- Azure Functions: Azure Functions is a serverless compute service that allows you to run event-driven code in the cloud. Functions supports WebSockets and provides a scalable and cost-effective way to handle long-lived WebSocket connections. You can use Functions to host your WebSocket server and connect to external WebSocket endpoints.
- Azure IoT Hub: Azure IoT Hub is a fully-managed service that allows you to connect, monitor, and manage IoT devices at scale. IoT Hub supports bidirectional communication using WebSockets, making it a good option for handling long-lived WebSocket connections between your IoT devices and your backend services. IoT Hub also provides features such as device management, message routing, and device-to-cloud telemetry.- https://learn.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-direct-methods
Depending on your specific requirements and use case, one or more of these services may be suitable for handling long-lived WebSocket connections in Azure.
Let us know