Questions tagged [azure-cosmosdb-changefeed]
62 questions
3
votes
2 answers
Have the Document class when using CosmosDBTrigger been deprecated?
Have the Document class in the Microsoft.Azure.Documents namespace been deprecated when developing isolated Azure functions?
I have recently migrated/upgraded a .NET6 Azure Function (v4) from running in-proccess to out-of-process a.k.a isolated…

Jonas
- 3,155
- 5
- 35
- 55
3
votes
1 answer
How reliable is change stream support in Azure Cosmos DB’s API for MongoDB?
Description
I am working on an ASP.NET Core 3.1 web application which needs to track/respond on changes made to the MongoDB database hosted by Azure Cosmos DB (version 3.6).
For this purpose I am using the Change feed support.
The changes are pretty…

ivanpovazan
- 97
- 9
3
votes
1 answer
CosmosDBTrigger reliably processing each document exactly once?
My customer would like to use a CosmosDBTrigger to transfer documents to an Azure Service Bus. In this scenario it's important to have a 1:1 relationship between Cosmos item mutations and Service Bus messages.
So, each document that the trigger…

JohnKoz
- 908
- 11
- 21
3
votes
1 answer
CosmosDB lease collection is no longer being created automatically
I'm having a very strange problem with CosmosDB & Azure Functions. I frequently delete my database and re-create it in DEV. I then re-deploy the function app. When I call the APIs in the app and CosmosDB triggers are invoked, I normally see the…

user246392
- 2,661
- 11
- 54
- 96
2
votes
1 answer
How to enable full fidelity in Azure Cosmos DB Change Feed
I'm trying to enable full fidelity in Change Feed by using the following code:
ContainerProperties containerProperties = new ContainerProperties("myContainer", "/pk");
containerProperties.ChangeFeedPolicy.FullFidelityRetention =…

user246392
- 2,661
- 11
- 54
- 96
2
votes
1 answer
Cosmos db change feed trigger not firing after function goes to sleep
I have a function that works fine locally but is not triggered in Azure unless the function is "awake". The function just copies items from one container to another, with the primary key and id columns swapped (as an eventually-consistent secondary…

Stephen Cleary
- 437,863
- 77
- 675
- 810
2
votes
1 answer
What is the time resolution of Cosmos DB Change Feed?
It is my understanding (e.g. from here) that the Cosmos DB Change Feed is not guaranteed to trigger an event for each update. For example, when two updates to the same document occur almost simultaneously it can happen that the Change Feed Processor…

Mo B.
- 5,307
- 3
- 25
- 42
2
votes
2 answers
One Azure Function that can listen to Cosmos DB Change Feed for all containers
Right now I have one Cosmos DB that have three different containers, therefore I use three different functions that are listening for Change Feed events from this Cosmos DB.
In the future amount of my containers will be grown from 3 to 100.
So, is…

CognitiveComplexity
- 134
- 1
- 9
2
votes
1 answer
Azure Functions: Understanding Change Feed in the context of multiple apps
According to the below diagram on https://learn.microsoft.com/en-us/azure/cosmos-db/change-feed-processor, at least 4 partition key ranges are distributed between two hosts. What I'm struggling to understand in this diagram is the distinction…

user246392
- 2,661
- 11
- 54
- 96
2
votes
2 answers
How to split C# string into variable when timestamp is optional?
I have an "id" string that I'm reading from a change feed in CosmosDB. Each record is versioned, so that whenever the record is updated, the old record will be versioned to include a timestamp, and the new record will be added.
Example:
id:…

secretclean
- 55
- 1
- 6
1
vote
1 answer
I want to increase maxdepth to 128 for cosmosjsondotnetserlializer in cosmos db trigger function
I get exception has been thrown by the change feed processor delegate. The reader's MaxDepth of 64 has been exceeded.
I am only looking for workaround to increase maxdepth 128
We cannot change payload structure.
Tried many things but nothing is…

MITI SHAH
- 33
- 3
1
vote
1 answer
Azure Cosmos DB Change Feed with MongoDB API (Not change stream!)
I've been struggling to understand the Azure Cosmos DB official docs.
This link shows that change feed can work with the "MongoDB" : Change feed in Azure Cosmos DB
But the following paragraph is what is confusing me:
So my question is following…

solujic
- 924
- 1
- 18
- 43
1
vote
1 answer
Generate sequence in Cosmos DB
Need to create sequence so what the code was currently doing select max(name) from table where item1 = '' and item2= '' and item3 = '' . After fetching max then it insert the element starting from max. But it will lead to concurrency issue.
Note:…

dj Bravo
- 198
- 1
- 3
- 18
1
vote
1 answer
Azure cosmos changefeed Processor options
Changefeed Processor options are well described here -
I have few questions on that -
leaseRenewInterval: Suppose an instance could not renew its lease within 17s (default lease renew interval), will the lease be removed from that instance? Or feed…

Vivek Vardhan
- 1,118
- 3
- 21
- 44
1
vote
1 answer
How can I get the changefeeds Monitored Collection name into my ChangesHander - Containers.ChangesHander (Azure Cosmos v3)
I have a service that spawns off a number of Changefeeds to monitor a number of different Cosmos DB collections. In v1 or 2,the ChangefeedObserver class included the ChangefeedObserverContext from which I could extract the collection name from.
…

Tdawg90
- 103
- 1
- 10