Hi,
I am going to develop a tool that will do the following:
- collect the files from remote server - periodically every few minutes.
- Export the collected files into a one single file.
From the client, it sends a request to the server every 5 or 10 mins. Then server then sends a list of files. This part is called 'collection'. After 'collection', 'export' needs to be done (consolidate all files that have been collected during the 'collection' period.
My idea is that the above 'collect' and 'export' actions are like 'producer' and 'consumer'. So, can I use the 'observer' pattern to implement the above actions? If not, please propose any other design pattern.
Regards, Kannan DV