-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Determine file storage strategy in API #2
Comments
Hey @rekibnikufesin do you have a sense of when S3 being slower might have an impact on a user? Which step would take longer with S3 compared to a local filesystem? Does it impact the upload speed itself (I'd guess that's dominated by the user's internet speed) Something else that's probably relevant to this decision: we should think carefully about how we'd use a CDN, S3 or anything that puts a file behind a permanent URL. If we do that, it means that one user can buy access, see the file's permanent url, then share that url on the internet and give everyone else free access to the file. I think the final delivery url, the place that leads to the raw file download via browser would need to be one time use or expire after a short amount of time (minutes or hours). |
I read your comment more carefully, and expiring S3 urls do seem like a good thing to have. |
The lag would be between API receipt of the full file and a hash being available to send to protocol. Given that we're looking at ~15 seconds on Mainnet for a transaction anyway, I'm starting to think this is less of an issue than I originally thought. |
RE: Expiring URLs - we can have the time as little as a few minutes. I'm thinking of something like
|
Re: lag, good point, and there's the voting itself that creates a delay before a listing is available for use, so yeah filesystem lag doesn't seem to be a big issue to me either. |
We need to determine how uploaded files are stored by the API.
Some initial thoughts, input welcome:
The text was updated successfully, but these errors were encountered: