hyperdrive
hyperdrive copied to clipboard
[Question] resumable writes in distributed setting
Hi,
I should invest some time trying this out but I thought I'd ask first in case I'm on the wrong track.
I open a file in append mode and I write to it (in Binary mode) multiple times until I have written the whole file and .then close it. If I get interrupted on the client at some point, I want to be able to reconnect to any instance of the server, find out how many bytes have been written and start the open and write process again from the next byte. Problem is I'm not sure the file will be sync'd on all instances of the server by the time I continue appending. What happens if my writes are interleaved with the replication write? I'm hoping that I would not be able to open the file until what's been written already (before the interruption) has been replicated on the current server instance. Is that a valid assumption?