Skip to content

Commit 4d5d845

Browse files
committed
incorporate PR feedback
1 parent 143827c commit 4d5d845

File tree

2 files changed

+39
-40
lines changed

2 files changed

+39
-40
lines changed

articles/azure-functions/durable/durable-functions-overview.md

Lines changed: 37 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,10 @@ Durable Functions is designed to work with all Azure Functions programming langu
2929
| PowerShell | Functions 3.0+ | PowerShell 7+ | 2.x bundles |
3030
| Java | Functions 4.0+ | Java 8+ | 4.x bundles |
3131

32-
::: zone pivot="node"
32+
::: zone pivot="javascript"
3333
> [!NOTE]
3434
> The new programming model for authoring Functions in Node.js (V4) is currently in preview. Compared to the current model, the new experience is designed to be more flexible and intuitive for JavaScript/TypeScript developers. Learn more about the differences between the models in the [Node.js upgrade guide](../functions-node-upgrade-v4.md).
35-
>
36-
> In the following code snippets, JavaScript (V4 model) denotes programming model V4, the new experience.
35+
3736
::: zone-end
3837

3938

@@ -63,7 +62,7 @@ In this example, the values `F1`, `F2`, `F3`, and `F4` are the names of other fu
6362

6463
::: zone pivot="csharp"
6564

66-
# [C# (InProc)](#tab/csharp-inproc)
65+
# [C# (InProc)](#tab/in-process)
6766

6867
```csharp
6968
[FunctionName("Chaining")]
@@ -86,7 +85,7 @@ public static async Task<object> Run(
8685

8786
You can use the `context` parameter to invoke other functions by name, pass parameters, and return function output. Each time the code calls `await`, the Durable Functions framework checkpoints the progress of the current function instance. If the process or virtual machine recycles midway through the execution, the function instance resumes from the preceding `await` call. For more information, see the next section, Pattern #2: Fan out/fan in.
8887

89-
# [C# (Isolated)](#tab/csharp-isolated)
88+
# [C# (Isolated)](#tab/isolated-process)
9089

9190
```csharp
9291
[Function("Chaining")]
@@ -110,9 +109,9 @@ public static async Task<object> Run(
110109
You can use the `context` parameter to invoke other functions by name, pass parameters, and return function output. Each time the code calls `await`, the Durable Functions framework checkpoints the progress of the current function instance. If the process or virtual machine recycles midway through the execution, the function instance resumes from the preceding `await` call. For more information, see the next section, Pattern #2: Fan out/fan in.
111110

112111
::: zone-end
113-
::: zone pivot="node"
112+
::: zone pivot="javascript"
114113

115-
# [JavaScript (V3 model)](#tab/v3-model)
114+
# [V3 model](#tab/v3-model)
116115

117116
```javascript
118117
const df = require("durable-functions");
@@ -134,7 +133,7 @@ You can use the `context.df` object to invoke other functions by name, pass para
134133
> [!NOTE]
135134
> The `context` object in JavaScript represents the entire [function context](../functions-reference-node.md#context-object). Access the Durable Functions context using the `df` property on the main context.
136135
137-
# [JavaScript (V4 model)](#tab/v4-model)
136+
# [V4 model](#tab/v4-model)
138137

139138
```javascript
140139
const df = require("durable-functions");
@@ -250,7 +249,7 @@ The Durable Functions extension handles this pattern with relatively simple code
250249

251250
::: zone pivot="csharp"
252251

253-
# [C# (InProc)](#tab/csharp-inproc)
252+
# [C# (InProc)](#tab/in-process)
254253

255254
```csharp
256255
[FunctionName("FanOutFanIn")]
@@ -279,7 +278,7 @@ The fan-out work is distributed to multiple instances of the `F2` function. The
279278

280279
The automatic checkpointing that happens at the `await` call on `Task.WhenAll` ensures that a potential midway crash or reboot doesn't require restarting an already completed task.
281280

282-
# [C# (Isolated)](#tab/csharp-isolated)
281+
# [C# (Isolated)](#tab/isolated-process)
283282

284283
```csharp
285284
[Function("FanOutFanIn")]
@@ -309,9 +308,9 @@ The fan-out work is distributed to multiple instances of the `F2` function. The
309308
The automatic checkpointing that happens at the `await` call on `Task.WhenAll` ensures that a potential midway crash or reboot doesn't require restarting an already completed task.
310309

311310
::: zone-end
312-
::: zone pivot="node"
311+
::: zone pivot="javascript"
313312

314-
# [JavaScript (V3 model)](#tab/v3-model)
313+
# [V3 model](#tab/v3-model)
315314

316315
```javascript
317316
const df = require("durable-functions");
@@ -337,7 +336,7 @@ The fan-out work is distributed to multiple instances of the `F2` function. The
337336

338337
The automatic checkpointing that happens at the `yield` call on `context.df.Task.all` ensures that a potential midway crash or reboot doesn't require restarting an already completed task.
339338

340-
# [JavaScript (V4 model)](#tab/v4-model)
339+
# [V4 model](#tab/v4-model)
341340

342341
```javascript
343342
const df = require("durable-functions");
@@ -526,7 +525,7 @@ The following code implements a basic monitor:
526525

527526
::: zone pivot="csharp"
528527

529-
# [C# (InProc)](#tab/csharp-inproc)
528+
# [C# (InProc)](#tab/in-process)
530529

531530
```csharp
532531
[FunctionName("MonitorJobStatus")]
@@ -556,7 +555,7 @@ public static async Task Run(
556555
}
557556
```
558557

559-
# [C# (Isolated)](#tab/csharp-isolated)
558+
# [C# (Isolated)](#tab/isolated-process)
560559

561560
```csharp
562561
[Function("MonitorJobStatus")]
@@ -586,9 +585,9 @@ public static async Task Run(
586585
```
587586

588587
::: zone-end
589-
::: zone pivot="node"
588+
::: zone pivot="javascript"
590589

591-
# [JavaScript (V3 model)](#tab/v3-model)
590+
# [V3 model](#tab/v3-model)
592591

593592
```javascript
594593
const df = require("durable-functions");
@@ -616,7 +615,7 @@ module.exports = df.orchestrator(function*(context) {
616615
});
617616
```
618617

619-
# [JavaScript (V4 model)](#tab/v4-model)
618+
# [V4 model](#tab/v4-model)
620619

621620
```javascript
622621
const df = require("durable-functions");
@@ -791,7 +790,7 @@ These examples create an approval process to demonstrate the human interaction p
791790

792791
::: zone pivot="csharp"
793792

794-
# [C# (InProc)](#tab/csharp-inproc)
793+
# [C# (InProc)](#tab/in-process)
795794

796795
```csharp
797796
[FunctionName("ApprovalWorkflow")]
@@ -820,7 +819,7 @@ public static async Task Run(
820819

821820
To create the durable timer, call `context.CreateTimer`. The notification is received by `context.WaitForExternalEvent`. Then, `Task.WhenAny` is called to decide whether to escalate (timeout happens first) or process the approval (the approval is received before timeout).
822821

823-
# [C# (Isolated)](#tab/csharp-isolated)
822+
# [C# (Isolated)](#tab/isolated-process)
824823

825824
```csharp
826825
[Function("ApprovalWorkflow")]
@@ -850,9 +849,9 @@ public static async Task Run(
850849
To create the durable timer, call `context.CreateTimer`. The notification is received by `context.WaitForExternalEvent`. Then, `Task.WhenAny` is called to decide whether to escalate (timeout happens first) or process the approval (the approval is received before timeout).
851850

852851
::: zone-end
853-
::: zone pivot="node"
852+
::: zone pivot="javascript"
854853

855-
# [JavaScript (V3 model)](#tab/v3-model)
854+
# [V3 model](#tab/v3-model)
856855

857856
```javascript
858857
const df = require("durable-functions");
@@ -877,7 +876,7 @@ module.exports = df.orchestrator(function*(context) {
877876

878877
To create the durable timer, call `context.df.createTimer`. The notification is received by `context.df.waitForExternalEvent`. Then, `context.df.Task.any` is called to decide whether to escalate (timeout happens first) or process the approval (the approval is received before timeout).
879878

880-
# [JavaScript (V4 model)](#tab/v4-model)
879+
# [V4 model](#tab/v4-model)
881880

882881
```javascript
883882
const df = require("durable-functions");
@@ -1034,7 +1033,7 @@ An event can also be raised using the durable orchestration client from another
10341033

10351034
::: zone pivot="csharp"
10361035

1037-
# [C# (InProc)](#tab/csharp-inproc)
1036+
# [C# (InProc)](#tab/in-process)
10381037

10391038
```csharp
10401039
[FunctionName("RaiseEventToOrchestration")]
@@ -1047,7 +1046,7 @@ public static async Task Run(
10471046
}
10481047
```
10491048

1050-
# [C# (Isolated)](#tab/csharp-isolated)
1049+
# [C# (Isolated)](#tab/isolated-process)
10511050

10521051
```csharp
10531052
[Function("RaiseEventToOrchestration")]
@@ -1061,9 +1060,9 @@ public static async Task Run(
10611060
```
10621061

10631062
::: zone-end
1064-
::: zone pivot="node"
1063+
::: zone pivot="javascript"
10651064

1066-
# [JavaScript (V3 model)](#tab/v3-model)
1065+
# [V3 model](#tab/v3-model)
10671066

10681067
```javascript
10691068
const df = require("durable-functions");
@@ -1075,7 +1074,7 @@ module.exports = async function (context) {
10751074
};
10761075
```
10771076

1078-
# [JavaScript (V4 model)](#tab/v4-model)
1077+
# [V4 model](#tab/v4-model)
10791078

10801079
```javascript
10811080
const df = require("durable-functions");
@@ -1161,7 +1160,7 @@ You can use [Durable entities](durable-functions-entities.md) to easily implemen
11611160

11621161
::: zone pivot="csharp"
11631162

1164-
# [C# (InProc)](#tab/csharp-inproc)
1163+
# [C# (InProc)](#tab/in-process)
11651164

11661165
```csharp
11671166
[FunctionName("Counter")]
@@ -1204,14 +1203,14 @@ public class Counter
12041203
}
12051204
```
12061205

1207-
# [C# (Isolated)](#tab/csharp-isolated)
1206+
# [C# (Isolated)](#tab/isolated-process)
12081207

12091208
Durable entities are currently not supported in the .NET-isolated worker.
12101209

12111210
::: zone-end
1212-
::: zone pivot="node"
1211+
::: zone pivot="javascript"
12131212

1214-
# [JavaScript (V3 model)](#tab/v3-model)
1213+
# [V3 model](#tab/v3-model)
12151214

12161215
```javascript
12171216
const df = require("durable-functions");
@@ -1233,7 +1232,7 @@ module.exports = df.entity(function(context) {
12331232
});
12341233
```
12351234

1236-
# [JavaScript (V4 model)](#tab/v4-model)
1235+
# [V4 model](#tab/v4-model)
12371236

12381237
```javascript
12391238
const df = require("durable-functions");
@@ -1326,7 +1325,7 @@ Clients can enqueue *operations* for (also known as "signaling") an entity funct
13261325

13271326
::: zone pivot="csharp"
13281327

1329-
# [C# (InProc)](#tab/csharp-inproc)
1328+
# [C# (InProc)](#tab/in-process)
13301329

13311330
```csharp
13321331
[FunctionName("EventHubTriggerCSharp")]
@@ -1346,14 +1345,14 @@ public static async Task Run(
13461345
> [!NOTE]
13471346
> Dynamically generated proxies are also available in .NET for signaling entities in a type-safe way. And in addition to signaling, clients can also query for the state of an entity function using [type-safe methods](durable-functions-dotnet-entities.md#accessing-entities-through-interfaces) on the orchestration client binding.
13481347
1349-
# [C# (Isolated)](#tab/csharp-isolated)
1348+
# [C# (Isolated)](#tab/isolated-process)
13501349

13511350
Durable entities are currently not supported in the .NET-isolated worker.
13521351

13531352
::: zone-end
1354-
::: zone pivot="node"
1353+
::: zone pivot="javascript"
13551354

1356-
# [JavaScript (V3 model)](#tab/v3-model)
1355+
# [V3 model](#tab/v3-model)
13571356

13581357
```javascript
13591358
const df = require("durable-functions");
@@ -1366,7 +1365,7 @@ module.exports = async function (context) {
13661365
};
13671366
```
13681367

1369-
# [JavaScript (V4 model)](#tab/v4-model)
1368+
# [V4 model](#tab/v4-model)
13701369

13711370
```javascript
13721371
const df = require("durable-functions");

articles/zone-pivot-groups.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,8 +463,8 @@ groups:
463463
pivots:
464464
- id: csharp
465465
title: C#
466-
- id: node
467-
title: Node.JS
466+
- id: javascript
467+
title: JavaScript
468468
- id: python
469469
title: Python
470470
- id: powershell

0 commit comments

Comments
 (0)