Build with an Azure free account. Get USD200 credit for 30 days and 12 months of free services.

Start free today

Serverless Apps with Azure Cosmos DB and Azure Functions

Play Serverless Apps with Azure Cosmos DB and Azure Functions
Sign in to queue


Kirill Gavrylyuk shows Scott Hanselman an easy way to build planet-scale serverless apps in minutes using Azure Cosmos DB and Azure Functions. Customers expect apps to offer event-driven, near real-time experiences. Now you can subscribe to changes in Azure Cosmos DB collections and trigger logic in real time while being globally-distributed, and without deploying or managing any servers.

For more information, see: 

Create a Free Account (Azure)





The Discussion

  • User profile image

    Recently I've made a solution that its pretty much the same, but I made with another stack. It's incredible to see how easily it would be if I used the azure.

  • User profile image
    Karthick Thoppe

    Thanks for sharing this new feature on CosmosDB.

    I am right in pointing out that:
    in Couchbase this may be possible via the Sync gateway
    in SQL server, its called CDC (Change data capture)

    I understand there are no functions per say but still it is possible depending upon your use case. Thanks.

  • User profile image

    By serverless, how so?

  • User profile image

    Well, that was fun and easy.  Now, to come up with a fun project to utilize this setup.  Thank you Kirill and Scott!

  • User profile image

    The peanut butter and chocolate combo does not scale outside the US, sorry Scott.

  • User profile image

    I can't work out how to use this when developing locally in Visual Studio 2017. Any ideas?

  • User profile image

    Anybody know if this guarantees ordered processing of the incoming change events? If I have five writes to cosmos, and each would trigger a function, will those functions be run on the documents in the order they were written to cosmos?

  • User profile image

    How exactly is this serverless?
    And doesn't this now pull business logic back onto the database?

  • User profile image

    @Karthick Thoppe: Hi Karthick, the new thing here is the trigger for functions. yes there are features similar to  CosmosDB' ChangeFeed in other databases.

  • User profile image

    @Roy, @Joe: Hi Roy, Joe, there are no servers/instances/cores to manage here. You pay for the time your code runs and the throughput you need.

  • User profile image

    Hi @Sean, yes, the processing order is guaranteed within the scope of a partition key (and more precisely a physical partition)

  • User profile image
    Mike Underwoo

    Does change fee guarantee any kind of order? I can see this being extremely useful in event handling to update materialized views, but if you can't get the events out in the same order they came in it could be very limited.

Add Your 2 Cents