I’ve been creating a live streaming dashboard, with various KPIs, to monitor a data acquisition methodology. The dashboard has grown to be fairly complex, and depending on the refresh rate of st_autorefresh, the UI becomes unresponsive or even disappears. This occurs when the refresh rate is set to 1 second. When setting the refresh rate to 1 min, the UI is 100% responsive. The issue has partly been improved with multiprocessing and threading. I’ve also read that asyncio can help.
My question really is, what should I take into account when creating a live streaming dashboard with streamlit? It is necessary that the dashboard gets updated frequently (every second) and automatically, without user - UI interaction, while the UI remains completely responsive at all times.
Any sources, e.g. books or opinions and insights are greatly appreciated!