I'm trying to implement a change feed processor on a database called Entity, where all files are imported as "entitytype-entityid."
- How would I use the lease to differentiate between each type of file? It is monitoring one collection.
Entity
/id /partition-id
customer499 customer499
product4051 product4051
productInventory4051 productInventory4051
- They have also added a versioning component to this. When "customer499" is changed, the old record is changed to "customer499-[date]" and the newly imported record is added as "customer499." I only want the lease to use the new record, and the change feed to consume the new record.
I am brand new to CosmosDB and change feeds. I need each lease to start on its respective entitytype and count only that. I think I have to define these things in the delegate function I call during HandleChangesAsync but am totally stuck.