Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Find usage of HTTP Batch in storage api

I got notified that Googles JSON-RPC and Global HTTP Batch Endpoints are deprecated. The affected api is "storage@v1" and "Global Batch Endpoints" in my case.

I tried to find, where the depricated api call comes from. But I'm using 24 buckets with several tools accessing it. So is there a way to log depricated calls? I enabled logging for buckets. I could not find any difference in the access log when doing batch request and when doing single requests.

like image 843
anon6789 Avatar asked Apr 04 '18 12:04

anon6789


1 Answers

Yes "Batching across multiple APIs in a single request" is being discontinued Discontinuing support for JSON-RPC and Global HTTP Batch Endpoints

But what its hard to understand is exactly what is being discontinued.

There are two batching endpoints. The Global one www.googleapis.com/batch And the API specific one www.googleapis.com/batch/<api>/<version>.

So whats changing?

The global batching endpoing is going down. This means you wont be able to make calls to www.googleapis.com/batch anymore. What does that really mean in the worse case if you were making batch requests mixing two apis at the same time for example Drive and Gmail you wont be able to do that anymore.

In the future you are going to have to split batch requests up by API.

Will this effect you?

Code wise this depends on which client library you are currrently using. Some of them have already been updated to use the single api endpoint (JavaScript and .net) there are a few which have not been updated yet (php and java last i checked)

Now as for your buckets if i understand them correctly they all insert into the same place so your using the same api this probably inst going to effect you. You are also using Googles SDK and they are going to keep that updated.

Note

The blog post is very confusing and there is some internal emails going around Google right now in attempt to get things cleared up as far as what this means for developers.

like image 119
DaImTo Avatar answered Sep 27 '22 20:09

DaImTo