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).

  • C ++ language? I see this: the first module downloads the data, processes it and saves it to the database. The second module at certain intervals climbs into the base and sends them somewhere. The database can use sqlite. And modules to implement or through threads / processes. Or as separate independent programs - gil9red September
  • All in real-time mode and with large volumes. There are no tasks to store in the database. The main task is to collect information, process and transfer as effectively as possible. - Valentine
  • one
    If you use qt, I think it would be more appropriate to use signals or events for communicating modules. When the module intercepts the data, it sends a signal to the processor either with the data or, if you have recorded it somewhere, just a signal of readiness. And so on. - Andrej Levkovitch

1 answer 1

Solved a problem using Qt tools. Namely, I used QThread for parallel execution of different objects, as well as QTime, QTimer for executing certain code at certain intervals.