I came across a situation, as far as I understand it necessary for some part of the program to work independently of the other, but I cannot yet understand how to accurately describe this process in the programming environment.
An example is this: data is transmitted in the local network; I need one part of the program (module) to intercept it. Next comes the question of processing this data according to a certain algorithm, whether it is necessary to describe another module in order to process this data or whether it is better to execute all of this in the first part. And the final stage of the processed information should be transferred to the third part, this module independently, at certain intervals, will send data to the address.
I ask for help with advice on how this is all the better to organize and with the help of what methods (tools).