Skip to content

Commit d34648c

Browse files
committed
review-2
1 parent 4158b05 commit d34648c

12 files changed

+137
-136
lines changed
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.advocates.azure-functions-and-signalr.1-introduction
3-
metadata:
4-
title: Introduction
5-
description: Learn to update an application to implement automatic updates that are nearly instantaneous.
6-
ms.date: 01/22/2025
7-
author: craigshoemaker
8-
ms.author: cshoe
9-
ms.topic: unit
10-
title: Introduction
11-
durationInMinutes: 1
12-
content: |
13-
[!include[](includes/1-introduction.md)]
14-
1+
### YamlMime:ModuleUnit
2+
uid: learn.advocates.azure-functions-and-signalr.1-introduction
3+
metadata:
4+
title: Introduction
5+
description: Learn to update an application to implement automatic updates that are nearly instantaneous.
6+
ms.date: 01/22/2025
7+
author: glenga
8+
ms.author: glenga
9+
ms.topic: unit
10+
title: Introduction
11+
durationInMinutes: 1
12+
content: |
13+
[!include[](includes/1-introduction.md)]
14+
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.advocates.azure-functions-and-signalr.2-analyze-limitations-of-polling-in-a-web-app
3-
metadata:
4-
title: Analyze the limitations of a polling-based web app
5-
description: Discuss the drawbacks of a web application that relies on polling to keep the UI updated.
6-
ms.date: 01/22/2025
7-
author: craigshoemaker
8-
ms.author: cshoe
9-
ms.topic: unit
10-
title: Analyze the limitations of a polling-based web app
11-
durationInMinutes: 6
12-
content: |
13-
[!include[](includes/2-analyze-limitations-of-polling-in-a-web-app.md)]
14-
1+
### YamlMime:ModuleUnit
2+
uid: learn.advocates.azure-functions-and-signalr.2-analyze-limitations-of-polling-in-a-web-app
3+
metadata:
4+
title: Analyze the limitations of a polling-based web app
5+
description: Discuss the drawbacks of a web application that relies on polling to keep the UI updated.
6+
ms.date: 01/22/2025
7+
author: glenga
8+
ms.author: glenga
9+
ms.topic: unit
10+
title: Analyze the limitations of a polling-based web app
11+
durationInMinutes: 6
12+
content: |
13+
[!include[](includes/2-analyze-limitations-of-polling-in-a-web-app.md)]
14+
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.advocates.azure-functions-and-signalr.3-exercise-analyze-limitations-of-polling-in-a-web-app
3-
metadata:
4-
title: Exercise - Analyze the limitations of a polling-based web app
5-
description: Review the implementation of polling website and run the app on your machine.
6-
ms.date: 01/22/2025
7-
author: craigshoemaker
8-
ms.author: cshoe
9-
ms.topic: unit
10-
ms.custom:
11-
title: Exercise - Analyze the limitations of a polling-based web app
12-
durationInMinutes: 15
13-
content: |
14-
[!include[](includes/3-exercise-analyze-limitations-of-polling-in-a-web-app.md)]
15-
1+
### YamlMime:ModuleUnit
2+
uid: learn.advocates.azure-functions-and-signalr.3-exercise-analyze-limitations-of-polling-in-a-web-app
3+
metadata:
4+
title: Exercise - Analyze the limitations of a polling-based web app
5+
description: Review the implementation of polling website and run the app on your machine.
6+
ms.date: 01/22/2025
7+
author: glenga
8+
ms.author: glenga
9+
ms.topic: unit
10+
ms.custom:
11+
title: Exercise - Analyze the limitations of a polling-based web app
12+
durationInMinutes: 15
13+
content: |
14+
[!include[](includes/3-exercise-analyze-limitations-of-polling-in-a-web-app.md)]
15+
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.advocates.azure-functions-and-signalr.4-enable-automatic-updates-in-a-web-app-using-signalr
3-
metadata:
4-
title: Enable automatic updates in a web application using SignalR Service
5-
description: Learn how a push-based architecture can make a better performing application.
6-
ms.date: 01/22/2025
7-
author: craigshoemaker
8-
ms.author: cshoe
9-
ms.topic: unit
10-
title: Enable automatic updates in a web application using SignalR Service
11-
durationInMinutes: 3
12-
content: |
13-
[!include[](includes/4-enable-automatic-updates-in-a-web-app-using-signalr.md)]
14-
1+
### YamlMime:ModuleUnit
2+
uid: learn.advocates.azure-functions-and-signalr.4-enable-automatic-updates-in-a-web-app-using-signalr
3+
metadata:
4+
title: Enable automatic updates in a web application using SignalR Service
5+
description: Learn how a push-based architecture can make a better performing application.
6+
ms.date: 01/22/2025
7+
author: glenga
8+
ms.author: glenga
9+
ms.topic: unit
10+
title: Enable automatic updates in a web application using SignalR Service
11+
durationInMinutes: 3
12+
content: |
13+
[!include[](includes/4-enable-automatic-updates-in-a-web-app-using-signalr.md)]
14+
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.advocates.azure-functions-and-signalr.5-exercise-enable-automatic-updates-in-a-web-app-using-signalr
3-
metadata:
4-
title: Exercise – Enable automatic updates in a web application using SignalR Service
5-
description: Implement integration with Azure Functions and SignalR Service for fast and targeted automatic updates.
6-
ms.date: 01/22/2025
7-
author: craigshoemaker
8-
ms.author: cshoe
9-
ms.topic: unit
10-
title: Exercise – Enable automatic updates in a web application using SignalR Service
11-
durationInMinutes: 12
12-
content: |
13-
[!include[](includes/5-exercise-enable-automatic-updates-in-a-web-app-using-signalr.md)]
14-
1+
### YamlMime:ModuleUnit
2+
uid: learn.advocates.azure-functions-and-signalr.5-exercise-enable-automatic-updates-in-a-web-app-using-signalr
3+
metadata:
4+
title: Exercise – Enable automatic updates in a web application using SignalR Service
5+
description: Implement integration with Azure Functions and SignalR Service for fast and targeted automatic updates.
6+
ms.date: 01/22/2025
7+
author: glenga
8+
ms.author: glenga
9+
ms.topic: unit
10+
title: Exercise – Enable automatic updates in a web application using SignalR Service
11+
durationInMinutes: 12
12+
content: |
13+
[!include[](includes/5-exercise-enable-automatic-updates-in-a-web-app-using-signalr.md)]
14+
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.advocates.azure-functions-and-signalr.6-host-a-static-website-using-a-storage-account
3-
metadata:
4-
title: Use a storage account to host a static website
5-
description: Learn how an Azure Storage account is able to host static files over a secure server.
6-
ms.date: 01/22/2025
7-
author: craigshoemaker
8-
ms.author: cshoe
9-
ms.topic: unit
10-
title: Use a storage account to host a static website
11-
durationInMinutes: 1
12-
content: |
13-
[!include[](includes/6-host-a-static-website-using-a-storage-account.md)]
14-
1+
### YamlMime:ModuleUnit
2+
uid: learn.advocates.azure-functions-and-signalr.6-host-a-static-website-using-a-storage-account
3+
metadata:
4+
title: Use a storage account to host a static website
5+
description: Learn how an Azure Storage account is able to host static files over a secure server.
6+
ms.date: 01/22/2025
7+
author: glenga
8+
ms.author: glenga
9+
ms.topic: unit
10+
title: Use a storage account to host a static website
11+
durationInMinutes: 1
12+
content: |
13+
[!include[](includes/6-host-a-static-website-using-a-storage-account.md)]
14+

learn-pr/advocates/automatic-update-of-a-webapp-using-azure-functions-and-signalr/7-exercise-host-a-static-website-using-a-storage-account.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ metadata:
44
title: Exercise - Use a storage account to host a static website
55
description: Customize your storage account, publish your function app, and view your application hosted in the cloud.
66
ms.date: 01/22/2025
7-
author: craigshoemaker
8-
ms.author: cshoe
7+
author: glenga
8+
ms.author: glenga
99
ms.topic: unit
1010
ms.custom: vscode-azure-extension-update-completed
1111
title: Exercise - Use a storage account to host a static website
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.advocates.azure-functions-and-signalr.8-summary
3-
metadata:
4-
title: Summary
5-
description: Review changes made to your application that removed polling and added server push technologies.
6-
ms.date: 01/22/2025
7-
author: craigshoemaker
8-
ms.author: cshoe
9-
ms.topic: unit
10-
title: Summary
11-
durationInMinutes: 2
12-
content: |
13-
[!include[](includes/8-summary.md)]
14-
1+
### YamlMime:ModuleUnit
2+
uid: learn.advocates.azure-functions-and-signalr.8-summary
3+
metadata:
4+
title: Summary
5+
description: Review changes made to your application that removed polling and added server push technologies.
6+
ms.date: 01/22/2025
7+
author: glenga
8+
ms.author: glenga
9+
ms.topic: unit
10+
title: Summary
11+
durationInMinutes: 2
12+
content: |
13+
[!include[](includes/8-summary.md)]
14+

learn-pr/advocates/automatic-update-of-a-webapp-using-azure-functions-and-signalr/includes/3-exercise-analyze-limitations-of-polling-in-a-web-app.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ Before you change the prototype, you need to run it to validate the assumptions.
44

55
1. In a separate browser tab or window, fork the sample repository on GitHub with the following link: [mslearn-advocates.azure-functions-and-signalr](https://github.com/MicrosoftDocs/mslearn-advocates.azure-functions-and-signalr/fork). This fork allows you to push your changes to your own version of the source code. This step is required in order to deploy the source code to Azure later in the module.
66

7-
1. In the terminal, clone your forked repository. In the following command, replace `MicrosoftDocs` with your account:
7+
1. In the terminal, clone your forked repository. In the following command, replace `<YOUR-GITHUB-ALIAS>` with your account:
88

99
```bash
1010
git clone https://github.com/<YOUR-GITHUB-ALIAS>/mslearn-advocates.azure-functions-and-signalr stock-prototype
1111
```
1212

13-
1. Install the dependencies in the **setup-resources** folder.
13+
1. Ensure that you're in the **stock-prototype** repo and install the dependencies in the **setup-resources** folder.
1414
1515
```bash
16-
cd setup-resources && npm install
16+
cd stock-prototype/setup-resources && npm install
1717
```
1818
1919
If you receive warnings about `EBADENGINE`, you can ignore them.
@@ -46,9 +46,9 @@ Before you change the prototype, you need to run it to validate the assumptions.
4646
bash create-start-resources.sh "<YOUR-SUBSCRIPTION-NAME>"
4747
```
4848
49-
Make sure you wrap the name in double quotes. If the script errors with an error about the location lacking available resources, edit the script to change the location: `LOCATION=<NEW LOCATION>`.
49+
Make sure you wrap the name in double quotes. If the script generates an error about the location lacking available resources, edit the script to change the location: `LOCATION=<NEW LOCATION>`.
5050
51-
1. Copy the required information, you'll need these to run the prototype.
51+
1. Copy the following information from the output and save it. You need it to run the prototype.
5252
5353
| Resource Type | Environment variable |
5454
|--|--|
@@ -85,7 +85,7 @@ Before you change the prototype, you need to run it to validate the assumptions.
8585
cd start/server && npm install && cd ../..
8686
```
8787
88-
1. If the notification asks you to select an Azure functions app for the workspace, select `start/server`. This is the function app that you'll use to run the server-side code.
88+
1. If the notification asks you to select an Azure functions app for the workspace, select `start/server`. In a later step, you use this function app to run the server-side code.
8989
9090
1. If you receive a notification about installing the latest Azure Functions Core Tools, select **Install**.
9191
@@ -104,7 +104,7 @@ Add the connection strings to the prototype's Azure Functions app.
104104
105105
:::code language="json" source="~/../microsoftdocs-mslearn-advocates-azure-functions-and-signalr/start/server/sample.local.settings.json" :::
106106
107-
1. Update the following variables with values you copied from above.
107+
1. Update the following variables with the values you copied and saved earlier.
108108
109109
|Property|Value|
110110
|--|--|
@@ -153,11 +153,11 @@ BACKEND_URL=http://localhost:7071
153153
:::image type="content" source="../media/visual-studio-code-notification-open-browser-3000.png" alt-text="Screenshot of Visual Studio Code notification to open the browser.":::
154154
155155
1. Arrange your browser windows so you can see the terminal and the prototype of the stock prices at the same time.
156-
1. In the prototype browser window, open the browser's developer tools. Notice the browser is making a request to the API every 5 seconds for all the data, even though the data hasn't changed.
156+
1. In the prototype browser window, open the browser's developer tools. Notice the browser is making a request to the API every 5 seconds for all the data, even though the data isn't changed.
157157
1. In the browser window, watch the output for the Azure Functions app. A single stock price changes every minute. When the price in the API changes, the next client fetch of all data includes that change.
158158
159159
:::image type="content" source="../media/visual-studio-code-terminal-output-stock-change.png" alt-text="Screenshot of Visual Studio Code terminal showing console output of the stock price change.":::
160160
161161
1. In both the terminals for client and server, stop the applications with <kbd>Ctrl</kbd> + <kbd>C</kbd> or kill the terminal by selecting the trashcan icon.
162162
163-
In this unit, you ran the prototype. While the client does run successfully, it isn't efficient. While each individual client might not notice this with such a small number of stocks, that will change as the number of stocks grows and the number of clients pull from the server. The prototype can be improved. Let's learn how in the next unit.
163+
In this unit, you ran the prototype. While the client does run successfully, it isn't efficient. Each individual client might not notice the inefficiency with just a few stocks. But it becomes more noticeable as the number of stocks grows and the number of clients that pull from the server grows. The prototype can be improved. Let's learn how in the next unit.

0 commit comments

Comments
 (0)