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

parallel upload of chunks #116

Closed
Yavari opened this issue Oct 21, 2023 · 2 comments
Closed

parallel upload of chunks #116

Yavari opened this issue Oct 21, 2023 · 2 comments

Comments

@Yavari
Copy link

Yavari commented Oct 21, 2023

Are you interested to take in an PR to send chunks in parallel and would you in that case be open to discuss the approach to take?

I need to upload 10-100 GB files and want to see if I can improve the speed by sending n chunks in parallel to my backend.

@mmcc
Copy link
Contributor

mmcc commented Oct 21, 2023

It's a good idea, we've gone down this path before! Unfortunately our primary backend (GCS) doesn't support uploading chunks concurrently so we ended up abandoning it. Still open to this for other backends, though!

I think you're on the right track in terms of configuration:

  • Should not be the default behavior
  • Need to be able to configure the number of concurrent chunks

Also just a heads up, we ended up doing quite a bit of experimentation at Mux over performance for large files like this. One of the big reasons why we ended up with our adaptive chunk size approach is because (up to a point), the fewer chunks, the faster the upload in total. Might want to experiment on that side of things as well.

@Yavari
Copy link
Author

Yavari commented Oct 22, 2023

My intial test with adaptive chunk size is promising. I will see if that works and get back to you if we decide to experiment with concurrent chunks.

@Yavari Yavari closed this as completed Oct 22, 2023
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

2 participants