KEMBAR78
Database, data storage, hosting with Firebase | PDF
Database, Data Storage & Cloud
Hosting With Firebase
-- Tu Pham --
Who Am I ?
● Pham Phuong Tu
● Google Developer Expert on Google Cloud Platform
● Co-Founder @ Dyno.me - Email Marketing Online SaaS
● Data Engineer @ Posify.vn - Customer Loyalty Platform
Firebase Features
● Analytics
● Grow
○ Notifications
○ App Indexing
○ Dynamic Links
○ Invites
○ AdWords
● Develop
○ Real time Database
○ Storage
○ Hosting
○ Cloud Messaging
○ Authentication
○ Remote Config
○ Test Lab
○ Crash Reporting
● Real time
● Offline
● Accessible
Firebase Real Time
Database
Real Time Database
● Sync changed data with all devices in milliseconds
● Cloud-hosted NOSQL database
● Store data in JSON format
● Websocket protocol
Offline
● Persists data to disk
● Once connectivity is reestablished, the client device
receives any changes it missed, synchronizing it with
the current server state.
Accessible From Client Devices
● Mobile SDK: Android, IOS
● Web SDK: Angular, Ember, React, Ionic, ...
● Restful API
Data Structure
Demo
● Firepad: https://demo.firepad.io/#BBG2016
● Office mover: https://office-mover-demo.firebaseapp.
com/
Firebase Storage
● Robust
● Secure
● Scalable
Robust
● Robust uploads and downloads in the background
● Auto restart where stopped, saving time and bandwidth
Secure
● Integrated with Firebase Authentication
● Allow access based on filename, size, content type, and
other metadata
Scalable
● Petabyte scale data storage backed by Google Cloud
Storage (powerful, simple, and cost-effective object
storage service)
● API access throughout Firebase or Google Cloud
Storage APIs
Firebase Storage Dashboard
GCP Storage Dashboard
● Secure connection
● Fast content
delivery
● Rapid deployment
● One-click rollback
Firebase Hosting
Secure Connection
● Automatically provisioned SSL certificate
● Content is always delivered securely
Fast Content Delivery
● Each file you upload is cached on SSDs at CDN edges
around the world
● Support for client-side routing
Rapid Deployment
● Firebase CLI tool
● Make your app up and running in seconds
One-click Rollbacks
● Provides full versioning and release management
● One-click roll back feature
Do It Now
● Firebase CLI
○ firebase init
○ firebase use fir-firebase-2d196
○ firebase deploy
Salud!!! https://fir-firebase-2d196.firebaseapp.com/
# firebase.json
{
"hosting": {
"public": "public",
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
Do It Now
Firebase With GCP
● Backend logic
● Message queue
● Big data
● CDN
Resources
● https://github.com/firebase/firebase-tools
● https://github.com/firebase/examples
● https://firebase.google.com/docs/…
● https://firebase.googleblog.com
● https://www.youtube.com/user/Firebase
Q & A

Database, data storage, hosting with Firebase