Asset file split/chunk send over REST API - DAM
Hello Everybody,
We have a requirement to push assets from AEM DAM to external DAM (non AEM-DAM) using rest API.
It is easy to push small size assets (up to 20 MB), but issue is with larger size assets due to Rest API data transfer limit.
One option is to split the large files in chunks and send each chunk over Rest api call.
but in case of bulk asset push what should be right approach to handle these assets chunks
1. InputStream
2. File system (temp file)
3. or any other recommandation (please)
In case of inputStream, lets say for one assets (size = 50 mb), we have created 3 chunks, chunk push on Rest API should be sequential or parallel.
Sequential processing of chunks will take more time, whereas parallel processing will take less time, but multi threading is having its own overhead.
can you please suggest recommended way to handle this kind of use case.
Regards,
Nj
