Single File to Multiple Targets – approach 3

In this approach, we copy the file in a temporary storage and after archiving and deleting the file from source folder.  A single file can be replicated in different folders destined for each target.

We will have   separate file transfer process for each target to send the file from source to target.    Each process will read the files from corresponding folders and send it to the destination in parallel. After successful transfer, each process deletes the file from corresponding folders. If particular process fails, then that process to be restarted.

Use Case: Use this approach if file size is small.  Temporary storage can be provided by source system or it can be within ESB server.

Benefits: In this case no file transfer tracking table may be required.  Process for each target can be run in parallel.  Each process  will be simpler thus giving us higher maintainability.  New process for new target can be added without impacting existing process .

Disadvantage: Overhead of replicating files for each target.