Sounds like a perfect candidate for Azure Functions:
"A common design pattern in these applications is to track changes made to DocumentDB data, and update materialized views, perform real-time analytics, archive data to cold storage, and trigger notifications on certain events based on these changes. DocumentDB's Change Feed support allows you to build efficient and scalable solutions for each of these patterns."
https://docs.microsoft.com/en-us/azure/documentdb/documentdb-change-feed
User Voice link: https://feedback.azure.com/forums/355860-azure-functions/suggestions/18499330-new-feature-support-for-documentdb-change-feed-tr
This is a good idea. We've done some investigation and will update when this makes some progress.
Any update on this?
Would love to see the ability to use Change Feed as a trigger for Functions.
I'd like to upvote this feature.
anything happening in this area? would be great trigger
It will be great and very Azure!!!
Will this support just DocumentDB API or MondoDB API as well, and also, will there be Node.js support (please, please, please...)?
@christopheranderson This feature appears to be available now in the latest version of the Functions runtime! Thanks for your hard work building this out! Is there any ETA on when we can expect Attribute based bindings for Change Feed?
That is already available. Just make sure you're referencing the latest DocumentDB extension NuGet package and using the latest CLI version and you'll be able to use the CosmosDBTriggerAttribute
@fabiocav Thank you! I have it working now, this is amazing news
Is there support for NodeJS?
Yes, this works in all our supported languages.
@christopheranderson Is there any example available for NodeJs? I read the example for .NET, but not sure how to to use it for NodeJS.
Most helpful comment
This is a good idea. We've done some investigation and will update when this makes some progress.