Skip to content
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

Files #107

Closed
joepio opened this issue Feb 22, 2021 · 1 comment
Closed

Files #107

joepio opened this issue Feb 22, 2021 · 1 comment

Comments

@joepio
Copy link
Member

joepio commented Feb 22, 2021

See atomicdata-dev/atomic-data-docs#57 for Atomic Data Spec issue

  • Upload files
  • Download files
  • Deal with large files (e.g. paginated PDF's, streaming videos)

Strategies

Use a folder in some dir + actix-files

  • Easy to implement
  • High degree of control over folder, easy to use, easy to manage
  • Might cause OS-specific filesystem quirks (things with folders and rights, max file length, whatever)
  • Hard to secure
  • Does not scale well

Store files in the DB

Files are a new datatype, which contains just a big u8 array + a MIME type or something

  • Harder to implement - especially the HTTP side of things (ByteServing, mime headers for all files). I'd rather not.
  • Forces me to think about how files work in atomic data - which is probably a good thing.
  • Harder for users to manage - hard to beat a filesystem.
  • Possible to encrypt files
  • Possible for the server to give guarantees over files - server has more control over DB than filesystem
  • Might be hard to optimize / make performant (even though I use a simple K/V store as DB)

Use an S3 like external object storage system

Instead on relying on Atomic server itself to deal with storing stuff, we can use some external object storage service. Mimio is an interesting open source contender.

  • Scales well for more centralized servers working with Atomic
  • Doesn't fit well with the no-dependencies proposition of Atomic.
@joepio
Copy link
Member Author

joepio commented Aug 5, 2021

Same as #72

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant