You can use Change Feed functionality.
When data changes Change Feed will fire Azure Function.
You can integrate SignalR into Azure Function.
SignalR will send a message to your application about the data change.
Then your application can handle that message and do whatever you like from that point.
How to get data from cosmos db in real time into my mern stack dashboard?
Developer
1
Reputation point
Hello,i have used azure cosmos DB as a storage for storing azure IOT data using stream analytics.Then i connect my NodeJS to azure cosmos dB using cosmos DB keys,then make an API and use this API to show data on my react application.
Now i want to know how to get real time data from azure cosmos DB to NodeJS when new data inserted in the cosmos DB.
Please explain with a flow diagram with compete explanation.
I am getting confuse with different approaches mentioned on your documentation like change Feed,azure functions,Azure Synapse Analytics etc.
1 answer
Sort by: Most helpful
-
Hasan Savran 331 Reputation points MVP
2022-06-14T13:41:15.643+00:00