MongoDB websocket and Dash plot

Hi Dave,
My experience 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
  2. Python - how to 'stream' data from my MongoDB collection? - Stack Overflow

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

Best Regards,
Dilip

1 Like