Google Cloud Platform Blog
Learn to build a mobile backend service with Firebase and App Engine
Thursday, June 30, 2016
Posted by Teppei Yagihashi, Solutions Architect, Google Cloud Platform
At Google I/O 2016, we launched a
significant new release of Firebase
that consolidates several of Google’s mobile offerings into a single product. The new Firebase reduces the complexity of building mobile client and backend services and provides tools to help you grow your user base, earn revenue from your app and collect and analyze app-event data.
With Firebase, you can easily build a scalable and loosely coupled system. For example, you can add iOS or web clients without any impact to existing Android clients. If you need backend services, App Engine Flexible Environment can add new backend capacity automatically.
We recently published a new solution document that demonstrates how to build a native chat application with a step-by-step guide and sample code for both an
Android app
and an App Engine-based
backend service
. The solution, “
Build a mobile app using Firebase and App Engine flexible environment
,” shows how to handle interactions between the Android app and servlets running in
App Engine Flexible Environment
.
(click to enlarge)
By storing data in the
Firebase Realtime Database
, the Android client app exchanges chat messages with other users and also pushes user-activity logs, such as sign-in and sign-out events and channel-change events, to Java Servlet instances in real-time.
In the sample code, the Servlet instances simply cache activity logs in memory, but that's just a small part of what you can do with Firebase and App Engine Flexible Environments. For example, Servlet instances can be used for:
Heavy and asynchronous backend processing
—
Tasks that are too resource-intensive to run on client devices can be processed asynchronously by a backend service.
Real-time fraud detection
—
Servlets can detect user events from multiple devices in a short period of time.
ETL processing
—
A backend service can pass user-event logs to other data stores such as
Google BigQuery
, for advanced analysis.
For more information, see the
Firebase documentation
, or learn about how to build
mobile solutions
using various
Google Cloud Platform
products. If you're interested in Firebase and App Engine, you can also sign up for a
free trial
.
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