Azure / azure-functions-host

The host/runtime that powers Azure Functions
https://functions.azure.com
MIT License
1.92k stars 441 forks source link

New Feature: Support for DocumentDB Change Feed triggers #1258

Open SimonLuckenuik opened 7 years ago

SimonLuckenuik commented 7 years ago

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

christopheranderson commented 7 years ago

This is a good idea. We've done some investigation and will update when this makes some progress.

seahckr commented 7 years ago

Any update on this?

WonderPanda commented 7 years ago

Would love to see the ability to use Change Feed as a trigger for Functions.

bigdatamoore commented 7 years ago

I'd like to upvote this feature.

vip32 commented 7 years ago

anything happening in this area? would be great trigger

hanwesh commented 7 years ago

It will be great and very Azure!!!

BruceBissett commented 7 years ago

Will this support just DocumentDB API or MondoDB API as well, and also, will there be Node.js support (please, please, please...)?

WonderPanda commented 7 years ago

@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?

fabiocav commented 7 years ago

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

WonderPanda commented 7 years ago

@fabiocav Thank you! I have it working now, this is amazing news

lazycuh commented 6 years ago

Is there support for NodeJS?

christopheranderson commented 6 years ago

Yes, this works in all our supported languages.

lazycuh commented 6 years ago

@christopheranderson Is there any example available for NodeJs? I read the example for .NET, but not sure how to to use it for NodeJS.