[PYTHON] Handle multiple inputs

Hey.
I am working on an Simple IoT where I’m getting data from about 30-50 devices per second (Json with 2 variables). Im getting data via MQTT protocol and am using about 20 async clients that recieve it. Since influxdb client cannot be async I’m having trouble writing all that in my DB. Im analyzing data with Grafana and every now and then some data is not written in the DB.

What would be the best solution for this? Would something like a simple custom queue that writes batches every second work?

Thanks

Hello @shinyumbreon,
Telegraf batches data beautifully.
Have you looked into using:


?