go-ds-s3
go-ds-s3 copied to clipboard
Question: does/could the datastore support multiple ipfs instances?
Hi there,
Would the datastore support concurrent access (ether rw or ro) to a given bucket? that is to say, can two distinct ipfs processes (be they on the same computer, or in containers, different VMs etc.) share a bucket? In the js-ipfs implementation they apparently use an object within the bucket as a lockfile, but I've had a quick look at the code and don't really see why it would be the case here (tho I am no go programmer).
Any thoughts/guidance would be gratefully received!
If it's read-only, yes. If it's read-write, you may run into issues with caching: go-ipfs will remember that you don't have a block and won't check again even if a different node wrote the block.
@Stebalien thanks for the quick and succinct reply, I have a bunch more digging to do!