This Screen cast shows how you can use Cosmos DB Change Feed, Azure Function and Azure Stream Analytics to do GROUP BY aggregation and save the result back in Cosmos DB.
Here is the code for demo shown in this screen cast. https://github.com/rafats/Presentations
Please see Cosmos DB, Azure Functions and Visual studio integration here • Cosmos DB Azure Functions and Visual Stud...