Has anyone used SeaweedFS as a data store for a TUS server?
I want to use the TUS protocol to enable users to upload big files to my object store. Therefore I thought of using the tusd
(GO) package and implementing the datastore
interface.
But I have some questions:
- Which approach do you think is more suitable/easier to implement? Should I store the upload on the local file system until it’s finished and move it to SeaweedFS after this or should I store the chunks directly in SeaweedFS? → I think the second approach is better but I’m not sure since there is a function
ConcatUploads
in thedatastore
interface and in order to implement this, I need to delete all other chunks I stored and move them to the new, finished file. Or am I wrong about this function? - Is there a more detailed info on how to implement a custom datastore then the docs in the go interface?
- Is there a collection of custom/community datastore implementations? Maybe somebody else have already implemented SeaweedFS as datastore or if not, maybe somebody is interested in my code as plug&play solution.
Sorry if the questions are a bit nooby, but I’m new to TUS…
regards