Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3474

handling values on automation applications between services

$
0
0
Hello everyone reading this post:

I'm using debian in industrial hardware appliances to host real time applications in the field of energy and automation.
So i'm running many services with python, web interfaces using dash framework, many services on different ports like modbus tcp server on 502, IEC 104 server on 2404, web apps on 80, 81, some backend code doing logging to .csv files, some other code doing uploads and downloads from and to FTP Server etc...

All my code is running separate as individual services and enabled with systemctl (systemd).

What would be the suggested way of sharing values between those services ? for example i'm reading values from the modbus tcp field as modbus tcp client, and then i remap this value on my modbus tcp server to be available to other devices and the rest of the services. The issue is that i can't make the same reading from the same source 6 times because this value is needed by 6 services, because after 50-100ms when the polling executes, the value will be different and also creating un-neccessary overhead of polling. I'm looking for something central to hold the values "on memory" let's say so they can be available to all the services and poll this values only once.

Any suggestions and comments highly appreciated !

Statistics: Posted by Bambos — 2024-07-03 13:20 — Replies 1 — Views 40



Viewing all articles
Browse latest Browse all 3474

Trending Articles