This example covers using the Change Feed Processor to create a reactive application that will print changes as they happen in the monitored container through a Delegate.
Running dotnet run --processor "somename"
will start a processor instance. Multiple processor instances can be started with different names and dynamic scaling will apply.
Running dotnet run --estimator
will start an estimator, which takes care of monitoring the pending changes to be read by the processor instances.
Once at least one processor is started, we can use dotnet run --writer X
where X
is the amount of documents to write. The process will write random data that will get picked up by the existing processor(s).