Google Cloud Platform Blog
Product updates, customer stories, and tips and tricks on Google Cloud Platform
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
Free Trial
GCP Blogs
Big Data & Machine Learning
Kubernetes
GCP Japan Blog
Firebase Blog
Apigee Blog
Popular Posts
Understanding Cloud Pricing
World's largest event dataset now publicly available in BigQuery
A look inside Google’s Data Center Networks
New in Google Cloud Storage: auto-delete, regional buckets and faster uploads
Enter the Andromeda zone - Google Cloud Platform’s latest networking stack
Labels
Announcements
193
Big Data & Machine Learning
134
Compute
271
Containers & Kubernetes
92
CRE
27
Customers
107
Developer Tools & Insights
151
Events
38
Infrastructure
44
Management Tools
87
Networking
43
Open
1
Open Source
135
Partners
102
Pricing
28
Security & Identity
85
Solutions
24
Stackdriver
24
Storage & Databases
164
Weekly Roundups
20
Feed
Subscribe by email
Demonstrate your proficiency to design, build and manage solutions on Google Cloud Platform.
Learn More
Technical questions? Check us out on
Stack Overflow
.
Subscribe to
our monthly newsletter
.
Google
on
Follow @googlecloud
Follow
Follow