How to get the deleted events in the consmos db change feeds with continuous backup enabled

Daniele Angeli 5 Reputation points
2024-08-28T11:14:44.4733333+00:00

Hello, I was wondering if it is possible to get the deleted events in the cosmos db change feed processor.

So far I am able to get both update and inserts events and according to the documentation, by enabling the continuous backup it should also be possible to get the deleted events.

Turning on continuous backups creates the all versions and deletes change feed. You can only read changes that occurred within the continuous backup period when using this change feed mode.

I know that there are alternatives such us using a flag in the documents or by restoring the db from the backup and comparing the content, but I am more interested in an alternative if it exists.

Thank you and best regards.

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,612 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sajeetharan 2,261 Reputation points Microsoft Employee
    2024-08-29T11:23:15.0566667+00:00

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.