Paul Krill
Editor at Large

Google offers experimental features to bolster Google Data Protocol

news
Mar 26, 20102 mins

Partial response and partial update are offered to reduce network and CPU resource consumption

Looking to make its APIs faster, Google introduced early this week two experimental features in Google Data Protocol, one for partial response and one for partial update.

Google Data Protocol offers a secure means for developers to write applications that let users access and update data stored by Google products.

[ See InfoWorld’s report on Google’s intentions to make the Web faster. ]

“Together, partial response and partial update can drastically reduce the network, memory, and CPU resources needed to work with Google APIs,” said Kyle Marvin and Zach Maier of the Google Data Protocol team, in a blog post.

Explaining how partial response works, team members cited an example of a developer writing an Android  calendar widget and wishing to display the time and title of recently changed events on Google Calendar.

“With the old Calendar Data API, you would request your calendar’s events feed and receive a large amount of information in response — including lots of extra data like the attendee list and the event description,” Marvin and Maier wrote. “With the addition of partial response, however, you can now use the fields query parameter to request only relevant information — in this case, event titles and times.

If a developer wants to enable a widget to change the time of calendar events, partial update makes this easy by editing data received in the partial response and using the HTTP PATCH verb to send modified data back to the server, the team members said.

“The server then intelligently interprets your PATCH, updating only the fields you chose to send. Throughout this entire read-modify-write cycle, the unneeded data remains server-side and untouched,” they said.

Partial response and partial update as of early this week were supported in varying degrees in YouTube Data API, Calendar Data API, Picasa Web Albums Data API, and Sidewiki Data API. Plans call for adding support for most Google Data Protocol APIs soon.

This story, “Google offers experimental features to bolster Google Data Protocol,” was originally published at InfoWorld.com. Follow the latest developments in software development at InfoWorld.com.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author