We currently developing an application that read files from file system/ftp/http and upload this files to mongodb. After that we want to analyze this files and write analyzed documents in mongodb. Requirements for this process:
- Real-time uploading and analyzing.
- Failure handling and restarting process.
- Possibility to re-analyzing files.
How properly organize this process in Spring XD? In what cases we should use streams or batch jobs? If anyone can tell best practices for using streams instead batch jobs and vice versa, it is very much appreciated.