There are two softwares S1 and S2. S1 constantly reads a video file. The task is that when a certain event occurs, S1 has to send S2 the frames it reads and stops after a while. S2 processes the frames and if there is an error, S2 has to request S1 again for frames. I want to know how this looped communication could be looped efficiently across different programming platforms, lets say, java and python.
What I have tried:
I haven't tried anything substantial. A couple of ideas relating socket programming.