Hi
i am trying to write a buffered plugin that uploads a chunk of a buffer to a third party REST service in chunks of 500 KB.
Although this part is working fine, i would like to add support for fallback in case the third party service is down.
basically, whenenver my http command fails, i want to send the buffer to a different plugin which will then take corrective action (For eg: Upload the file to s3).
To achieve this should i iterate the records in the buffer and re-emit them or is there a better way to pass on the whole chunk to the fallback plugin?
Regards
Sanket