# MongoDB websocket and Dash plot

**URL:** https://community.plotly.com/t/mongodb-websocket-and-dash-plot/64808
**Category:** Dash Python
**Tags:** question
**Created:** [June 6, 2022, 7:38am UTC](https://community.plotly.com/t/mongodb-websocket-and-dash-plot/64808 "2022-06-06T07:38:39Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![diliprk](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@diliprk](https://community.plotly.com/u/diliprk)
#### Post date: [June 18, 2022, 4:17pm UTC](https://community.plotly.com/t/mongodb-websocket-and-dash-plot/64808/9 "2022-06-18T16:17:38Z")

</div>

Hi Dave,  
[My experience](https://community.plotly.com/t/callbacks-for-dash-cards-not-working-responsively-when-reading-from-a-mongodb-collection/64703) with dcc.Interval was not good for live streaming data to be visualized in plotly-dash. That is why I resorted to WebSockets / ChangeStreams. Anyways, here are some references I collected, which you could try, I imagine it would involve using a local data store like Redis or something for faster local access.

1. [MongoDB Atlas and Live Chart Update on plotly-dash - #2 by Tobias\_Gardhus - MongoDB Atlas - MongoDB Developer Community Forums](https://www.mongodb.com/community/forums/t/mongodb-atlas-and-live-chart-update-on-plotly-dash/158578/2)
2. [Python - how to 'stream' data from my MongoDB collection? - Stack Overflow](https://stackoverflow.com/questions/53286652/python-how-to-stream-data-from-my-mongodb-collection)

If you arrive at a viable solution to make faster streaming plots via WebSockets, then please do share.

Best Regards,  
Dilip

---

_[View the full topic](https://community.plotly.com/t/mongodb-websocket-and-dash-plot/64808)._
