datahike icon indicating copy to clipboard operation
datahike copied to clipboard

1 writer, n reader

Open awb99 opened this issue 4 years ago • 1 comments

I cannot find a forum to ask questions for, so I put the question in here:

Is it safe to have multiple connections with one writer app and n reader apps connected to the same file storage? Will the readers pick up new data?

awb99 avatar May 06 '21 17:05 awb99

Yes, this post is describing how you can have multiple readers and one writer with shared file storage at the moment: https://lambdaforge.io/2019/12/08/replicate-datahike-wherever-you-go.html. If you have a shared file system you can ignore the Dat related bits and just run multiple peers on the same shared filesystem. We will automate the refreshing of the connection from the store in our next releases based on our newly added transactor interface and datahike-server, so you will not have to add the refreshing code manually.

whilo avatar May 07 '21 21:05 whilo