Skip to content

Commit 6614187

Browse files
committed
update change feed estimator doc
1 parent 0aab05e commit 6614187

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

articles/cosmos-db/nosql/how-to-use-change-feed-estimator.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: ealsur
55
ms.service: cosmos-db
66
ms.subservice: nosql
77
ms.topic: how-to
8-
ms.date: 05/11/2023
8+
ms.date: 07/25/2024
99
ms.author: maquaran
1010
ms.devlang: csharp
1111
ms.custom: devx-track-csharp
@@ -34,7 +34,7 @@ Identifying this scenario helps understand if we need to scale our change feed p
3434

3535
Like the [change feed processor](./change-feed-processor.md), the change feed estimator can work as a push model. The estimator will measure the difference between the last processed item (defined by the state of the leases container) and the latest change in the container, and push this value to a delegate. The interval at which the measurement is taken can also be customized with a default value of 5 seconds.
3636

37-
As an example, if your change feed processor is defined like this:
37+
As an example, if your change feed processor is using latest version mode and is defined like this:
3838

3939
[!code-csharp[Main](~/samples-cosmosdb-dotnet-v3/Microsoft.Azure.Cosmos.Samples/Usage/ChangeFeed/Program.cs?name=StartProcessorEstimator)]
4040

@@ -81,7 +81,7 @@ Each estimation will consume [request units](../request-units.md) from your [mon
8181

8282
### [Java](#tab/java)
8383

84-
The provided example represents a sample Java application that demonstrates the implementation of the Change Feed Processor with the estimation of the lag in processing change feed events. In the application - documents are being inserted into one container (the "feed container"), and meanwhile another worker thread or worker application is pulling inserted documents from the feed container's Change Feed and operating on them in some way.
84+
The provided example represents a sample Java application that demonstrates the implementation of the Change Feed Processor in latest version mode with the estimation of the lag in processing change feed events. In the application - documents are being inserted into one container (the "feed container"), and meanwhile another worker thread or worker application is pulling inserted documents from the feed container's Change Feed and operating on them in some way.
8585

8686
The change Feed Processor is built and started like this:
8787
[!code-java[](~/azure-cosmos-java-sql-api-samples/src/main/java/com/azure/cosmos/examples/changefeed/SampleChangeFeedEstimator.java?name=ChangeFeedProcessorBuilder)]
@@ -99,15 +99,20 @@ An example of a delegate that receives changes and handles them with a lag is:
9999

100100
---
101101

102+
## Supported change feed modes
103+
104+
The change feed estimator can be used for both [latest version mode](./change-feed-modes.md#latest-version-change-feed-mode) and [all versions and deletes mode](./change-feed-modes.md#all-versions-and-deletes-change-feed-mode-preview). In both modes, the estimate provided is not guaranteed to be an exact count of outstanding changes to process.
105+
102106
## Additional resources
103107

104108
* [Azure Cosmos DB SDK](sdk-dotnet-v3.md)
105-
* [Usage samples on GitHub (.NET)](https://github.com/Azure/azure-cosmos-dotnet-v3/tree/master/Microsoft.Azure.Cosmos.Samples/Usage/ChangeFeed)
109+
* [Usage samples on GitHub (.NET latest version)](https://github.com/Azure/azure-cosmos-dotnet-v3/tree/master/Microsoft.Azure.Cosmos.Samples/Usage/ChangeFeed)
110+
* [Usage samples on Github (.NET all versions and deletes)](https://github.com/Azure/azure-cosmos-dotnet-v3/tree/master/Microsoft.Azure.Cosmos.Samples/Usage/ChangeFeedAllVersionsAndDeletes)
106111
* [Usage samples on GitHub (Java)](https://github.com/Azure-Samples/azure-cosmos-java-sql-api-samples/tree/main/src/main/java/com/azure/cosmos/examples/changefeed)
107112
* [Additional samples on GitHub](https://github.com/Azure-Samples/cosmos-dotnet-change-feed-processor)
108113

109114
## Next steps
110115

111-
You can now proceed to learn more about change feed processor in the following articles:
116+
You can now proceed to learn more about change feed processor in the following article:
112117

113118
* [Overview of change feed processor](change-feed-processor.md)

0 commit comments

Comments
 (0)