Reputation: 3018
For compliance reasons, I need to capture all database changes. I know that Change Feed
stores this information (and I'm waiting for full fidelity to capture deletes). Currently, I've been reading from Change Feed
via a Function
trigger and copying the changes into an Azure Table
.
Is this overkill? Does Change Feed
maintain all activity logs as long as the Cosmos database is active or are the changes automatically removed after a certain retention period?
Upvotes: 0
Views: 674
Reputation: 8763
Change Feed does not store every mutation within a container. It only stores the latest version.
If you need an opLog of every change then yes you could do this by creating an append only data store and using change feed to pick up when any change is made.
Upvotes: 2