database, data storage, hosting with firebase
TRANSCRIPT
![Page 1: Database, data storage, hosting with Firebase](https://reader035.vdocuments.us/reader035/viewer/2022062523/5875421f1a28abb8208b5385/html5/thumbnails/1.jpg)
Database, Data Storage & Cloud Hosting With Firebase
-- Tu Pham --
![Page 2: Database, data storage, hosting with Firebase](https://reader035.vdocuments.us/reader035/viewer/2022062523/5875421f1a28abb8208b5385/html5/thumbnails/2.jpg)
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
![Page 3: Database, data storage, hosting with Firebase](https://reader035.vdocuments.us/reader035/viewer/2022062523/5875421f1a28abb8208b5385/html5/thumbnails/3.jpg)
![Page 4: Database, data storage, hosting with Firebase](https://reader035.vdocuments.us/reader035/viewer/2022062523/5875421f1a28abb8208b5385/html5/thumbnails/4.jpg)
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
![Page 5: Database, data storage, hosting with Firebase](https://reader035.vdocuments.us/reader035/viewer/2022062523/5875421f1a28abb8208b5385/html5/thumbnails/5.jpg)
● Real time● Offline● Accessible
Firebase Real Time Database
![Page 6: Database, data storage, hosting with Firebase](https://reader035.vdocuments.us/reader035/viewer/2022062523/5875421f1a28abb8208b5385/html5/thumbnails/6.jpg)
Real Time Database
● Sync changed data with all devices in milliseconds● Cloud-hosted NOSQL database ● Store data in JSON format● Websocket protocol
![Page 7: Database, data storage, hosting with Firebase](https://reader035.vdocuments.us/reader035/viewer/2022062523/5875421f1a28abb8208b5385/html5/thumbnails/7.jpg)
Offline
● Persists data to disk● Once connectivity is reestablished, the client device
receives any changes it missed, synchronizing it with the current server state.
![Page 8: Database, data storage, hosting with Firebase](https://reader035.vdocuments.us/reader035/viewer/2022062523/5875421f1a28abb8208b5385/html5/thumbnails/8.jpg)
Accessible From Client Devices
● Mobile SDK: Android, IOS● Web SDK: Angular, Ember, React, Ionic, ...● Restful API
![Page 9: Database, data storage, hosting with Firebase](https://reader035.vdocuments.us/reader035/viewer/2022062523/5875421f1a28abb8208b5385/html5/thumbnails/9.jpg)
Data Structure
![Page 10: Database, data storage, hosting with Firebase](https://reader035.vdocuments.us/reader035/viewer/2022062523/5875421f1a28abb8208b5385/html5/thumbnails/10.jpg)
Demo
● Firepad: https://demo.firepad.io/#BBG2016● Office mover: https://office-mover-demo.firebaseapp.
com/
![Page 11: Database, data storage, hosting with Firebase](https://reader035.vdocuments.us/reader035/viewer/2022062523/5875421f1a28abb8208b5385/html5/thumbnails/11.jpg)
Firebase Storage
● Robust● Secure● Scalable
![Page 12: Database, data storage, hosting with Firebase](https://reader035.vdocuments.us/reader035/viewer/2022062523/5875421f1a28abb8208b5385/html5/thumbnails/12.jpg)
Robust
● Robust uploads and downloads in the background● Auto restart where stopped, saving time and bandwidth
![Page 13: Database, data storage, hosting with Firebase](https://reader035.vdocuments.us/reader035/viewer/2022062523/5875421f1a28abb8208b5385/html5/thumbnails/13.jpg)
Secure
● Integrated with Firebase Authentication● Allow access based on filename, size, content type, and
other metadata
![Page 14: Database, data storage, hosting with Firebase](https://reader035.vdocuments.us/reader035/viewer/2022062523/5875421f1a28abb8208b5385/html5/thumbnails/14.jpg)
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
![Page 15: Database, data storage, hosting with Firebase](https://reader035.vdocuments.us/reader035/viewer/2022062523/5875421f1a28abb8208b5385/html5/thumbnails/15.jpg)
Firebase Storage Dashboard
![Page 16: Database, data storage, hosting with Firebase](https://reader035.vdocuments.us/reader035/viewer/2022062523/5875421f1a28abb8208b5385/html5/thumbnails/16.jpg)
GCP Storage Dashboard
![Page 17: Database, data storage, hosting with Firebase](https://reader035.vdocuments.us/reader035/viewer/2022062523/5875421f1a28abb8208b5385/html5/thumbnails/17.jpg)
● Secure connection● Fast content
delivery● Rapid deployment● One-click rollback
Firebase Hosting
![Page 18: Database, data storage, hosting with Firebase](https://reader035.vdocuments.us/reader035/viewer/2022062523/5875421f1a28abb8208b5385/html5/thumbnails/18.jpg)
Secure Connection
● Automatically provisioned SSL certificate● Content is always delivered securely
![Page 19: Database, data storage, hosting with Firebase](https://reader035.vdocuments.us/reader035/viewer/2022062523/5875421f1a28abb8208b5385/html5/thumbnails/19.jpg)
Fast Content Delivery
● Each file you upload is cached on SSDs at CDN edges around the world
● Support for client-side routing
![Page 20: Database, data storage, hosting with Firebase](https://reader035.vdocuments.us/reader035/viewer/2022062523/5875421f1a28abb8208b5385/html5/thumbnails/20.jpg)
Rapid Deployment
● Firebase CLI tool● Make your app up and running in seconds
![Page 21: Database, data storage, hosting with Firebase](https://reader035.vdocuments.us/reader035/viewer/2022062523/5875421f1a28abb8208b5385/html5/thumbnails/21.jpg)
One-click Rollbacks
● Provides full versioning and release management● One-click roll back feature
![Page 22: Database, data storage, hosting with Firebase](https://reader035.vdocuments.us/reader035/viewer/2022062523/5875421f1a28abb8208b5385/html5/thumbnails/22.jpg)
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" } ]
}}
![Page 23: Database, data storage, hosting with Firebase](https://reader035.vdocuments.us/reader035/viewer/2022062523/5875421f1a28abb8208b5385/html5/thumbnails/23.jpg)
Do It Now
![Page 24: Database, data storage, hosting with Firebase](https://reader035.vdocuments.us/reader035/viewer/2022062523/5875421f1a28abb8208b5385/html5/thumbnails/24.jpg)
Firebase With GCP
● Backend logic● Message queue● Big data● CDN
![Page 25: Database, data storage, hosting with Firebase](https://reader035.vdocuments.us/reader035/viewer/2022062523/5875421f1a28abb8208b5385/html5/thumbnails/25.jpg)
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
![Page 26: Database, data storage, hosting with Firebase](https://reader035.vdocuments.us/reader035/viewer/2022062523/5875421f1a28abb8208b5385/html5/thumbnails/26.jpg)
Q & A