-
Notifications
You must be signed in to change notification settings - Fork 868
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
Streaming Google storage upload #759
Comments
@Fonsan Thank you for your patience with this request! I finally got the chance today to run https://github.com/Fonsan/gcs_stream_upload and the examples work for me. |
@Fonsan Can you see a backward-compatible way to add this functionality to googleapis/google-api-ruby-client? I think that might be the first step toward incorporating it into google-cloud-storage. Even then, however, I'm not sure if other considerations might prevent adding this feature, for example the use of |
@quartzmo Given the way What I am describing above is a bit of a hack but I would really rather see the change in
Is there a specific reason why google-api-ruby-client could not be extended to allow for BTW @ https://www.kaiko.com/ we are running the gem above in production until a cleaner alternative comes around. |
Should this conversation be moved to a new issue on googleapis/google-api-ruby-client ? |
@Fonsan If it's OK with you, I will transfer this issue to googleapis/google-api-ruby-client for further discussion. |
@quartzmo any efforts to further the progression would be excellent :) |
@quartzmo I'll let you investigate the feasibility of this. |
@blowmage Any comment on this?
|
I believe HttpClient is checking for size. But yes, google-api-client could be rewritten to use something other than HttpClient and not check |
Judging from the documentation, |
|
hi @quartzmo are you actively working on the streaming support on this? I noticed this issue has no one assigned to it right now |
It's not being actively worked on right at this point. Likely this will require first completing #2348 (which is on my plate but I won't get to it for a few more weeks). |
No note this is related as well - googleapis/google-cloud-ruby#8235, any news? Is PR for #2348 welcomed? |
:'( no progress? Anything I can help with here? |
I am trying to solve the case of uploading files in a streaming fashion without keeping the full contents in memory
I have previously implemented the same feature in aws/aws-sdk-ruby#1711
As identified in googleapis/google-cloud-ruby#1997
There are some limitations in
google-api-client
which hard codes the use of the content length headerI have written a minimal wrapper library that monkey patches it here which should serve as a good source of inspiration: https://github.com/Fonsan/gcs_stream_upload
The text was updated successfully, but these errors were encountered: