Skip to content

Commit aba5fae

Browse files
committed
fix FeedRange definition
1 parent b90f108 commit aba5fae

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

articles/cosmos-db/change-feed-pull-model.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,16 @@ while (iteratorForThePartitionKey.HasMoreResults)
7171

7272
## Using FeedRange for parallelization
7373

74-
In the [change feed processor](change-feed-processor.md), work is automatically spread across multiple consumers. 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).
74+
In the [change feed processor](change-feed-processor.md), work is automatically spread across multiple consumers. 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.
7575

76-
Here's an example showing how to obtain a list of ranges for your container.
76+
Here's an example showing how to obtain a list of ranges for your container:
7777

7878
```csharp
7979
IReadOnlyList<FeedRange> ranges = await container.GetFeedRangesAsync();
8080
```
8181

82+
When you obtain of list of FeedRanges for your container, you'll get one `FeedRange` per [physical partition](partition-data.md#physical-partitions).
83+
8284
Using a `FeedRange`, you can then create a `FeedIterator` to parallelize the processing of the change feed across multiple machines or threads. Unlike the previous example that showed how to obtain a single `FeedIterator` for the entire container, you can use the `FeedRange` to obtain multiple FeedIterators which can process the change feed in parallel.
8385

8486
In the case where you want to use FeedRanges, you need to have an orchestrator process that obtains FeedRanges and distributes them to those machines. This distribution could be:

0 commit comments

Comments
 (0)