Skip to content

Commit aa92ea7

Browse files
committed
deployment unit
1 parent d227e31 commit aa92ea7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

articles/cosmos-db/change-feed-processor.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,19 @@ To prevent your change feed processor from getting "stuck" continuously retrying
6868

6969
In addition, you can use the [change feed estimator](how-to-use-change-feed-estimator.md) to monitor the progress of your change feed processor instances as they read the change feed. In addition to monitoring if the change feed processor gets "stuck" continuously retrying the same batch of changes, you can also understand if your change feed processor is lagging behind due to available resources like CPU, memory, and network bandwidth.
7070

71+
## Deployment unit
72+
73+
A single change feed processor deployment unit consists of one or more instances with the same `processorName` and lease container configuration. You can have many deployment units where each one has a different business flow for the changes and each deployment unit consisting of one or more instances. When a change happens in the monitored container, all deployment units will get notified.
74+
7175
## Dynamic scaling
7276

73-
As mentioned during the introduction, the change feed processor can distribute compute across multiple instances automatically. You can deploy multiple instances of your application using the change feed processor and take advantage of it, the only key requirements are:
77+
As mentioned before, within a deployment unit you can have one or more instances. To take advantage of the compute distribution within the deployment unit, the only key requirements are:
7478

7579
1. All instances should have the same lease container configuration.
76-
1. All instances should have the same workflow name.
80+
1. All instances should have the same `processorName`.
7781
1. Each instance needs to have a different instance name (`WithInstanceName`).
7882

79-
If these three conditions apply, then the change feed processor will, using an equal distribution algorithm, distribute all the leases in the lease container across all running instances and parallelize compute. One lease can only be owned by one instance at a given time, so the maximum number of instances equals to the number of leases.
83+
If these three conditions apply, then the change feed processor will, using an equal distribution algorithm, distribute all the leases in the lease container across all running instances of that deployment unit and parallelize compute. One lease can only be owned by one instance at a given time, so the maximum number of instances equals to the number of leases.
8084

8185
The number of instances can grow and shrink, and the change feed processor will dynamically adjust the load by redistributing accordingly.
8286

0 commit comments

Comments
 (0)