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

architecture: Decouple uploading files to static file storage from client side upload flow. #17

Open
dheerajdlalwani opened this issue May 4, 2024 · 0 comments

Comments

@dheerajdlalwani
Copy link
Member

the flow is:

  1. client uploads file on server
  2. server breaks it into chunks
  3. server uploads files to static file storage
  4. sends success response to client.

we want to break this flow.

flow should be:

  1. client uploads file on server
  2. server sends a response
  3. server adds a file break job to a queue

  1. cron job keeps looking for a job to do
  2. it sees file break job
  3. breaks file
  4. updates the status in DB
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