Google Cloud Platform Blog
Build an efficient mobile app using gRPC
Monday, July 20, 2015
Transmitting data from mobile devices to a backend server can be a very resource-intensive process. Using the standard HTTP/1.1 protocol, frequent connections from a mobile device to a cloud service can drain the battery, increase latency, and block other apps from connecting.
Google’s
gRPC framework
handles remote procedure calls (RPC) between mobile clients and backend servers more efficiently. It uses the
HTTP/2
standard, which introduces bi-directional streaming, flow control, header compression, and the ability to multiplex requests over a single TCP/IP connection. You can use gRPC to make your mobile app more bandwidth-efficient and to reduce latency between your app and services running in the cloud. Better battery life, reduced data transfer fees and faster response times make for happy mobile users!
You can explore an end-to-end sample that demonstrates how to build an efficient photo-sharing app using these technologies here:
Image management for mobile apps using gRPC and Google Cloud Platform
. The sample application provides an open-source reference implementation of the entire design pattern, including two backend services connecting to both iOS and Android mobile clients.
There are three components of the sample:
Mobile app
—
Using the mobile app, the user can upload photos, vote for photos, and view a list photos uploaded by their friends that is sorted by the photos’ newness and popularity.
Metadata service
—The metadata service stores information about images, users, and votes. It’s designed for high-volume traffic using gRPC and Google Cloud Datastore.
Image processing application
—A Google App Engine application orchestrates a set of Google Cloud Platform services to resize the images uploaded by users into a set of sizes designed for optimal display on mobile devices.
To learn more: read a
walkthrough of how the sample was built
and
download the code
.
As always, we appreciate your feedback. Let us know what you think using the
Feedback
link at the top of the
the article
.
- Posted by Syne Mitchell, Google Cloud Platform Technical Writer
No comments :
Post a Comment
Don't Miss Next '17
Use promo code NEXT1720 to save $300 off general admission
REGISTER NOW
Free Trial
GCP Blogs
Big Data & Machine Learning
Kubernetes
GCP Japan Blog
Labels
Announcements
56
Big Data & Machine Learning
91
Compute
156
Containers & Kubernetes
36
CRE
7
Customers
90
Developer Tools & Insights
80
Events
34
Infrastructure
24
Management Tools
39
Networking
18
Open Source
105
Partners
63
Pricing
24
Security & Identity
23
Solutions
16
Stackdriver
19
Storage & Databases
111
Weekly Roundups
16
Archive
2017
Feb
Jan
2016
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2015
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2014
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2013
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2012
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2011
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2010
Dec
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2009
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2008
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Feed
Subscribe by email
Technical questions? Check us out on
Stack Overflow
.
Subscribe to
our monthly newsletter
.
Google
on
Follow @googlecloud
Follow
Follow
No comments :
Post a Comment