I'm running webserver on Raspberry PI, and I'm planning to set multiple PI's on different locations. Those PI's will communicate with webserver via TCP connection (webserver will send them data that users enter (data will be different for each PI, PI's will send back log files). The biggest problem now is, which device should be client and which should be server?
I was thinking about every PI being a TCP server, with webserver being a TCP client. Webserver will then connect to PI's TCP server, send him data and PI will answer with log files. Is this good way to solve my problem?