You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should try out the experimental HTTP/2 support in node.js core, and provide an API to turn it on.
Reacted by wellczech, Indospace.io, rickyk586, Vlad Tsepelev, Motin, Christopher X Gerber, Zach Bloomquist, Yulia Tenincheva, Jordan Baker, lsdevrp and 2 more
Hello @JustinBeckwith, sadly batches were removed from library, I marked this day in calendar with a sad emoji. 😢
Would be great if you can give any recommendations on how to make thousands of homogeneous requests to Google Drive API. I have to perform similar actions (files.update) on a lot of files (thousands). I faced API quotas and have to limit requests pressure and backoff strategy from my side.
At the moment I'm using Batchelor to organise requests in batches, this requires a bit of extra auth routines and feels like a bit different. Is there a best practice how to perform mass similar operations to Google Drive?
We should try out the experimental HTTP/2 support in node.js core, and provide an API to turn it on.
With Node v10 the http2 module has become a stable addition, and I trust that the Google API:s themselves support HTTP/2. What are the current blockers / steps towards supporting HTTP/2 requests? Does request need to support HTTP/2? Let us know the game plan, and we can help out in relevant ways :)
@nickbclifford we've released a variety of the APIs supported by google-api-nodejs-client as gRPC libraries, which use http2 for transport, a list can be found here:
Is there a better solution available using other APIs that aren't available through Google Cloud (i.e. Gmail)? Since batching was removed, there's really no obvious first-party solution for many API requests.
If there won't be http2 support in this library, can we have a example in how to use the /batch/library/v1 endpoints manually? I need to reduce the overhead in looping and making a ton of RESTful requests.
I had success with using "request" to perform a batch request, but sadly this library is deprecated so I don't want to use it. I couldn't even get a curl to work but "request" worked fine, I don't what I'm doing wrong.
Seems like I will have to refrain from using the batch endpoints and send multiple requests at a time
Hey @bramkragten really I was just trying to get a few miles on the implementation before we called it good to go. Nobody has really complained or filed any bugs, so I assume it's working ok :) I'll go ahead and lift the "experimental" warning here next week.
Hey Justin, my company is evaluating the usage of this flag in prod but still wary of the "experimental" warning -- is there a planned release coming that removes the warning?
Activity
yetithefoot commentedon Oct 18, 2018
Hello @JustinBeckwith, sadly batches were removed from library, I marked this day in calendar with a sad emoji. 😢
Would be great if you can give any recommendations on how to make thousands of homogeneous requests to Google Drive API. I have to perform similar actions (
files.update) on a lot of files (thousands). I faced API quotas and have to limit requests pressure and backoff strategy from my side.At the moment I'm using Batchelor to organise requests in batches, this requires a bit of extra auth routines and feels like a bit different. Is there a best practice how to perform mass similar operations to Google Drive?
motin commentedon Nov 29, 2018
With Node v10 the http2 module has become a stable addition, and I trust that the Google API:s themselves support HTTP/2. What are the current blockers / steps towards supporting HTTP/2 requests? Does request need to support HTTP/2? Let us know the game plan, and we can help out in relevant ways :)
nickbclifford commentedon Oct 4, 2019
Has this issue gone anywhere? I'm currently moving away from global batch endpoints and proper HTTP/2 support would be hugely helpful.
bcoe commentedon Oct 7, 2019
@nickbclifford we've released a variety of the APIs supported by google-api-nodejs-client as gRPC libraries, which use http2 for transport, a list can be found here:
https://github.com/googleapis/google-cloud-node
There's no immediate plan to add http2 support to
google-api-nodejs-client.nickbclifford commentedon Oct 8, 2019
Is there a better solution available using other APIs that aren't available through Google Cloud (i.e. Gmail)? Since batching was removed, there's really no obvious first-party solution for many API requests.
jlippold commentedon Apr 16, 2020
If there won't be http2 support in this library, can we have a example in how to use the
/batch/library/v1endpoints manually? I need to reduce the overhead in looping and making a ton of RESTful requests.Thanks
vilkatis commentedon May 21, 2020
I had success with using "request" to perform a batch request, but sadly this library is deprecated so I don't want to use it. I couldn't even get a curl to work but "request" worked fine, I don't what I'm doing wrong.
Seems like I will have to refrain from using the batch endpoints and send multiple requests at a time
JustinBeckwith commentedon Jun 18, 2020
Good news everyone! We have experimental HTTP/2 support brewing here:
#2246
For those interested in the gory details, the real magic is here:
googleapis/nodejs-googleapis-common#293
JustinBeckwith commentedon Jul 27, 2020
Since it's been a while since this landed, calling this done :) Please it out and leave feedback!
https://github.com/googleapis/google-api-nodejs-client#http2
bramkragten commentedon Apr 15, 2021
What is the state of HTTP/2, when would this be ready to use in production?
JustinBeckwith commentedon Apr 17, 2021
Hey @bramkragten really I was just trying to get a few miles on the implementation before we called it good to go. Nobody has really complained or filed any bugs, so I assume it's working ok :) I'll go ahead and lift the "experimental" warning here next week.
lespina commentedon Jun 30, 2021
Hey Justin, my company is evaluating the usage of this flag in prod but still wary of the "experimental" warning -- is there a planned release coming that removes the warning?
JustinBeckwith commentedon Jun 30, 2021
Yeah, it's been a year now - I think it's time.
googleapis/nodejs-googleapis-common#401