Live data plotting app architecture

Hello,

I’m building an application that is a long running process generating numbers continuously, let’s say 10 samples per second. I want to visualise these numbers with dash. From looking at the examples I understand how to build nice ui components that would be able to visualise the data, but all of the examples are generating random data. What’s the right way of doing that? I mean the flask server is blocking so if I run it inside my long running process it would just block and not do anything other than waiting.

Semi separately, how much overhead would it add to the process?

Thanks,
D