I am working on a perl backend project which performs operations based on input supplied by a JSP web app. Both are running on a linux based server. After performing the requested operations, the backend needs to send confirmation/acknowledgement of the same to the frontend - and this needs to happen in realtime.
I was advised to use files as a means for communication between these frontend and backend programs. As per the design, there would one file for frontend to backend messages and another for the reverse, i.e., backend to frontend messages. Both would be read on a continuous basis by the frontend/backend processes which will take the appropriate action based on control messages read from these files.
The code for this has not been written yet, as I am still unsure if this is the best way to do it. I have heard of Inter-Process Communication but not really sure of how to implement it in my case. I am really new to this sort of thing and am looking for advice/suggestions or a good reference which would point me in the right direction towards solving this problem.