Skip to content

Commit 7b76a14

Browse files
Merge pull request #226312 from cebundy/sigr-concept-azure-functions
[SignalR]: Freshness review of signalr-concept-azure-functions.md
2 parents c051d2e + fa27b49 commit 7b76a14

File tree

2 files changed

+25
-23
lines changed

2 files changed

+25
-23
lines changed

articles/azure-signalr/TOC.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
href: signalr-concept-scale-aspnet-core.md
6262
- name: Serverless
6363
items:
64-
- name: Build real-time apps with Azure Functions
64+
- name: Real-time apps with Azure Functions
6565
href: signalr-concept-azure-functions.md
6666
- name: Develop and configure SignalR Service apps
6767
href: signalr-concept-serverless-development-config.md
Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
11
---
2-
title: Build Real-time app - Azure Functions & Azure SignalR Service
3-
description: Learn how to develop real-time serverless web application with Azure SignalR Service by following example.
2+
title: Real-time apps with Azure SignalR Service and Azure Functions
3+
description: Learn about how Azure SignalR Service and Azure Functions together allow you to create real-time serverless web applications.
44
author: vicancy
55
ms.service: signalr
6-
ms.custom: ignite-2022
76
ms.topic: conceptual
8-
ms.date: 11/13/2019
7+
ms.date: 02/14/2023
98
ms.author: lianwei
109
---
11-
# Build real-time Apps with Azure Functions and Azure SignalR Service
1210

13-
Because Azure SignalR Service and Azure Functions are both fully managed, highly scalable services that allow you to focus on building applications instead of managing infrastructure, it's common to use the two services together to provide real-time communications in a [serverless](https://azure.microsoft.com/solutions/serverless/) environment.
11+
# Real-time apps with Azure SignalR Service and Azure Functions
12+
13+
14+
Azure SignalR Services combined with Azure Functions allows you to run real-time messaging web apps in a serverless environment. This article provides an overview of how the services work together.
15+
16+
Azure SignalR Service and Azure Functions are both fully managed, highly scalable services that allow you to focus on building applications instead of managing infrastructure. It's common to use the two services together to provide real-time communications in a [serverless](https://azure.microsoft.com/solutions/serverless/) environment.
17+
1418

15-
> [!NOTE]
16-
> Learn to use SignalR and Azure Functions together in the interactive tutorial [Enable automatic updates in a web application using Azure Functions and SignalR Service](/training/modules/automatic-update-of-a-webapp-using-azure-functions-and-signalr).
1719

1820
## Integrate real-time communications with Azure services
1921

20-
Azure Functions allow you to write code in [several languages](../azure-functions/supported-languages.md), including JavaScript, Python, C#, and Java, that triggers whenever events occur in the cloud. Examples of these events include:
22+
The Azure Functions service allows you to write code in [several languages](../azure-functions/supported-languages.md), including JavaScript, Python, C#, and Java that triggers whenever events occur in the cloud. Examples of these events include:
2123

2224
* HTTP and webhook requests
2325
* Periodic timers
@@ -26,47 +28,47 @@ Azure Functions allow you to write code in [several languages](../azure-function
2628
- Event Hubs
2729
- Service Bus
2830
- Azure Cosmos DB change feed
29-
- Storage - blobs and queues
31+
- Storage blobs and queues
3032
- Logic Apps connectors such as Salesforce and SQL Server
3133

3234
By using Azure Functions to integrate these events with Azure SignalR Service, you have the ability to notify thousands of clients whenever events occur.
3335

3436
Some common scenarios for real-time serverless messaging that you can implement with Azure Functions and SignalR Service include:
3537

36-
* Visualize IoT device telemetry on a real-time dashboard or map
37-
* Update data in an application when documents update in Azure Cosmos DB
38-
* Send in-app notifications when new orders are created in Salesforce
38+
* Visualize IoT device telemetry on a real-time dashboard or map.
39+
* Update data in an application when documents update in Azure Cosmos DB.
40+
* Send in-app notifications when new orders are created in Salesforce.
3941

4042
## SignalR Service bindings for Azure Functions
4143

4244
The SignalR Service bindings for Azure Functions allow an Azure Function app to publish messages to clients connected to SignalR Service. Clients can connect to the service using a SignalR client SDK that is available in .NET, JavaScript, and Java, with more languages coming soon.
45+
<!-- Are there more lanaguages now? -->
4346

4447
### An example scenario
4548

4649
An example of how to use the SignalR Service bindings is using Azure Functions to integrate with Azure Cosmos DB and SignalR Service to send real-time messages when new events appear on an Azure Cosmos DB change feed.
4750

4851
![Azure Cosmos DB, Azure Functions, SignalR Service](media/signalr-concept-azure-functions/signalr-cosmosdb-functions.png)
4952

50-
1. A change is made in an Azure Cosmos DB collection
51-
2. The change event is propagated to the Azure Cosmos DB change feed
52-
3. An Azure Functions is triggered by the change event using the Azure Cosmos DB trigger
53-
4. The SignalR Service output binding publishes a message to SignalR Service
54-
5. SignalR Service publishes the message to all connected clients
53+
1. A change is made in an Azure Cosmos DB collection.
54+
2. The change event is propagated to the Azure Cosmos DB change feed.
55+
3. An Azure Functions is triggered by the change event using the Azure Cosmos DB trigger.
56+
4. The SignalR Service output binding publishes a message to SignalR Service.
57+
5. The SignalR Service publishes the message to all connected clients.
5558

5659
### Authentication and users
5760

58-
SignalR Service allows you to broadcast messages to all clients or only to a subset of clients, such as those belonging to a single user. The SignalR Service bindings for Azure Functions can be combined with App Service Authentication to authenticate users with providers such as Azure Active Directory, Facebook, and Twitter. You can then send messages directly to these authenticated users.
61+
SignalR Service allows you to broadcast messages to all or a subset of clients, such as those belonging to a single user. You can combine the SignalR Service bindings for Azure Functions with App Service authentication to authenticate users with providers such as Azure Active Directory, Facebook, and Twitter. You can then send messages directly to these authenticated users.
5962

6063
## Next steps
6164

62-
In this article, you got an overview of how to use Azure Functions with SignalR Service to enable a wide array of serverless real-time messaging scenarios.
63-
6465
For full details on how to use Azure Functions and SignalR Service together visit the following resources:
6566

6667
* [Azure Functions development and configuration with SignalR Service](signalr-concept-serverless-development-config.md)
6768
* [Enable automatic updates in a web application using Azure Functions and SignalR Service](/training/modules/automatic-update-of-a-webapp-using-azure-functions-and-signalr)
6869

69-
Follow one of these quickstarts to learn more.
70+
To try out the SignalR Service bindings for Azure Functions, see:
7071

7172
* [Azure SignalR Service Serverless Quickstart - C#](signalr-quickstart-azure-functions-csharp.md)
7273
* [Azure SignalR Service Serverless Quickstart - JavaScript](signalr-quickstart-azure-functions-javascript.md)
74+
* [Enable automatic updates in a web application using Azure Functions and SignalR Service](/training/modules/automatic-update-of-a-webapp-using-azure-functions-and-signalr).

0 commit comments

Comments
 (0)