You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cosmos-db/change-feed-pull-model.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,11 +15,11 @@ ms.reviewer: sngun
15
15
The change feed pull model is part of the [Azure Cosmos DB SDK V3](https://github.com/Azure/azure-cosmos-dotnet-v3). You can use the change feed pull model to parallelize processing of changes across multiple change feed consumers.
16
16
17
17
> [!NOTE]
18
-
> The change feed pull model is currently in [preview in the .NET SDK](https://www.nuget.org/packages/Microsoft.Azure.Cosmos/3.9.0-preview) only. The preview is not yet available for other SDK versions.
18
+
> The change feed pull model is currently in [preview in the Azure Cosmos DB .NET SDK](https://www.nuget.org/packages/Microsoft.Azure.Cosmos/3.9.0-preview) only. The preview is not yet available for other SDK versions.
19
19
20
-
## Using FeedTokens for parallelization
20
+
## Using FeedRange for parallelization
21
21
22
-
In the change feed pull model, you can use the `FeedRange` to parallelize the processing of the change feed. A `FeedRange` represents a range of partition key values. This range could match a complete physical partition, a smaller range, or a single partition key value.
22
+
In the change feed pull model, you can use the `FeedRange` to parallelize the processing of the change feed. A `FeedRange` represents a single [physical partition].(partition-data.md#physical-partitions).
23
23
24
24
Here's an example showing how to obtain a list of ranges for your container.
25
25
@@ -75,7 +75,7 @@ while (iteratorB.HasMoreResults)
75
75
}
76
76
```
77
77
78
-
## Saving FeedTokens
78
+
## Saving continuation tokens
79
79
80
80
You can save the position of your `FeedIterator` by creating a continuation token. A continuation token is a string value that keeps of track of your FeedIterator's last processed changes. This allows the `FeedIterator` to resume at this point later. The following code will read through the change feed since container creation. After no more changes are available, it will persist a continuation token so that change feed consumption can be later resumed.
Sometimes you might not need any parallelization when reading the change feed. By creating a `FeedIterator` without any `FeedToken` input, you can read an entire container's change feed on one machine:
104
+
Sometimes you might not need any parallelization when reading the change feed. By creating a `FeedIterator` without any `FeedRange` input, you can read an entire container's change feed on one machine:
Copy file name to clipboardExpand all lines: articles/cosmos-db/read-change-feed.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,8 +15,8 @@ You can work with the Azure Cosmos DB change feed using any of the following opt
15
15
16
16
* Using Azure Functions
17
17
* Using the change feed processor
18
-
* Using the change feed pull model
19
18
* Using the Azure Cosmos DB SQL API SDK
19
+
* Using the change feed pull model (preview)
20
20
21
21
## Using Azure Functions
22
22
@@ -32,7 +32,10 @@ With the SDK, you get a low-level control of the change feed. You can manage the
32
32
33
33
## Using the change feed pull model
34
34
35
-
The [change feed pull model](change-feed-pull-model.md) allows you to parallelize processing of changes with FeedRanges. A FeedRange can span range of partiton key values or even a single partiton key value. This makes it easy to process changes for a specific partition key or achieve better parallelization of processing changes than with the change feed processor. The change feed pull model is currently in [preview] in the .NET SDK(https://www.nuget.org/packages/Microsoft.Azure.Cosmos/3.9.0-preview) only. The preview is not yet available for other SDK versions.
35
+
The [change feed pull model](change-feed-pull-model.md) allows you to parallelize processing of changes with FeedRanges. A FeedRange can span range of partition key values or even a single partition key value. This makes it easy to process changes for a specific partition key or achieve better parallelization of processing changes than with the change feed processor. The change feed pull model is currently in [preview] in the .NET SDK(https://www.nuget.org/packages/Microsoft.Azure.Cosmos/3.9.0-preview) only. The preview is not yet available for other SDK versions.
36
+
37
+
> [!NOTE]
38
+
> The change feed pull model is currently in [preview in the Azure Cosmos DB .NET SDK](https://www.nuget.org/packages/Microsoft.Azure.Cosmos/3.9.0-preview) only. The preview is not yet available for other SDK versions.
0 commit comments