So prior to uploading segments, I should call startReplaceSegments. Then after that has been called, can I then start calling uploadSegment?
I guess in this case, I should be uploading segments to some other directory/bucket (s3).
Once this is all done, do I then call endReplaceSegments? What do I do if there is a failure while uploading segments? Anything else I should know? Thank you all