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/nosql/how-to-use-change-feed-estimator.md
+10-5Lines changed: 10 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ author: ealsur
5
5
ms.service: cosmos-db
6
6
ms.subservice: nosql
7
7
ms.topic: how-to
8
-
ms.date: 05/11/2023
8
+
ms.date: 07/25/2024
9
9
ms.author: maquaran
10
10
ms.devlang: csharp
11
11
ms.custom: devx-track-csharp
@@ -34,7 +34,7 @@ Identifying this scenario helps understand if we need to scale our change feed p
34
34
35
35
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.
36
36
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:
@@ -81,7 +81,7 @@ Each estimation will consume [request units](../request-units.md) from your [mon
81
81
82
82
### [Java](#tab/java)
83
83
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.
85
85
86
86
The change Feed Processor is built and started like this:
@@ -99,15 +99,20 @@ An example of a delegate that receives changes and handles them with a lag is:
99
99
100
100
---
101
101
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
+
102
106
## Additional resources
103
107
104
108
*[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)
106
111
*[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)
107
112
*[Additional samples on GitHub](https://github.com/Azure-Samples/cosmos-dotnet-change-feed-processor)
108
113
109
114
## Next steps
110
115
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:
112
117
113
118
*[Overview of change feed processor](change-feed-processor.md)
0 commit comments