Is there an Azure database equivalent to Firebase clients being able to listen for database changes?

TomEverin picture TomEverin · Dec 6, 2016 · Viewed 13.5k times · Source

Firebase's realtime database SDK has callback methods built in which allow the client to listen for database changes. (e.g. as per https://firebase.google.com/docs/database/android/start/)

Does Azure have any functionality like that in either the SQL Database or DocumentDB products? If not, why not? And what is the best way to achieve this functionality using Azure?

Thanks.

Edit context: I'm building a cross-platform mobile app using Xamarin.

Answer

Toby picture Toby · Dec 15, 2016

Microsoft just announced a new feature in DocDb called Change Feed which sounds like what you are looking for. It is enabled by default and included in the cost of DocDb.

From their announcement: "With Change Feed support, DocumentDB provides a sorted list of documents within a DocumentDB collection in the order in which they were modified. This feed can be used to listen for modifications to data within the collection and perform actions..."

Documentation on how to work with the change feed can be found here: https://docs.microsoft.com/en-us/azure/documentdb/documentdb-change-feed