I'm wondering what the best practice would be for the following task:
I start a program on a remote node, which will generate subsequently new files in a publicly accessable folder. Whenever a new file is created on the remote node, I need to transfer this file to another node, say local node / client immediately.
Please note, the nodes are two regular Windows 10 Desktop computers connected by a LAN in our lab room.
I could monitor the remote directory periodically, but this would not transfer the data as soon as it is available. I'm just wondering if there is already a principle or design pattern I could apply or if I do have to set-up some own client/server communication. I think this questions is programming language agnostic however I'm using C#.