on my Embedded Linux system I have local Web/RESTFul Microservice (Nginx + Gunicorn & Flask) to manage a connected sensor. A second local Python Sensor application gathers every 10 seconds data from that sensor and also expose functions to read that data, write sensor config.
What might be a good and lightweight approach to exchange data between both processes in both directions?
I assume I need some kind of client-server infrastructure whereas the Python sensor app plays the role of the server and the Flask Microservice the role of the client.
Thanks