I have been thinking about this subject for a while now, but this is my first attempt to get some help. So maybe I am still not asking the right questions, and I apologize for this. Btw, this is a "theorical" question, I am not asking for codes... AND, english is not my native language (sorry again)...
Well, I need to (programatically) create a method to allow a software inside a LAN (behind router/firewall) perform some action when a button in my website is clicked. The software is in a completely remote location, not in same computer/server as the website.
I know I could create some kind of thread in the software to periodically listen to a boolean database field, or maybe a text file in the website. But I think today we might have some better (more efficient) tecnology for this necessity...
I would like to know what is (or are) the most efficient solution(s) for this approach. By efficient I mean lightweight (do not overload my website with periodical requests) and fast (users need to wait just few seconds when click the button to get a response).
I appreciate any kind of thoughts and ideais about a possible solution for this necessity, and thanks in advance!