What would be a good concept to use a Websockets in Python which I want to keep open always and only read that once per 5 or 10 seconds? The data which is read at each 5/10 seconds is written in DB.
I am using as orchestrator the Apache Airflow 2.3.4 and I would like to include this task of reading and inserting data from websockets.
Thank you