Best configuration to host an SSE listener in Azure to listen for external messages?

Jeff Humphry 20 Reputation points
2023-04-03T15:02:30.54+00:00

I am looking to build and SSE listener to listen for messages from an external vendor's system. I would like to host this process in an Azure resource. What would be the best way to set that up? Is there an Azure resource that does this function specifically? Would like to avoid running a service on a VM instance. I feel like Web Jobs or Functions might not be the best architecture as these are functions that are triggered by and event; an SSE listener just runs continuously (for the most part).

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,801 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,363 questions
Azure SignalR Service
Azure SignalR Service
An Azure service that is used for adding real-time communications to web applications.
121 questions
Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
322 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ryan Hill 26,241 Reputation points Microsoft Employee
    2023-04-05T03:55:35.6233333+00:00

    Using server-sent events (SSE), you can look into using Azure API Management. Follow the guidelines for configuring an API in API Management that implements SSE. SSE is based on the HTML5 EventSource standard for streaming (pushing) data automatically to a client over HTTP after a client has established a connection. Another option is using Azure SignalR Service leverages events which allows applications to react to client connections connected or disconnected using modern serverless architectures. You can also use Azure Relay hybrid connections as event handlers for Azure Event Grid. To learn more about using Azure Event Grid and Azure CLI to publish a topic, and subscribe to that event, see the tutorial on routing custom events to Azure Relay Hybrid Connections with Azure CLI and Event Grid.

    0 comments No comments

0 additional answers

Sort by: Most helpful