Firebase BaaS Ecosystem - Blink22 Talks

9f35133a79e0c3d1dde8282eae30aa35?s=47 Blink22
January 13, 2020

Firebase BaaS Ecosystem - Blink22 Talks

Motivation - Why Firebase?
Introduction - Cloud-computing execution model in which the cloud provider runs the server, and dynamically manages the allocation of machine resources.
Pricing is based on the actual amount of resources consumed by an application, rather than on pre-purchased units of capacity.

Services
Firebase Authentication
Firestore
Storage
Functions
Hosting
And a LOT more!!

9f35133a79e0c3d1dde8282eae30aa35?s=128

Blink22

January 13, 2020
Tweet

Transcript

  1. Firebase BaaS Ecosystem by Marc

  2. BaaS is HERE

  3. Agenda 3 • Motivation • Introduction • Services ◦ Firebase

    Authentication ◦ Firestore ◦ Storage ◦ Functions ◦ Hosting ◦ And a LOT more!!
  4. Motivation 1

  5. 5 Who use Firebase?

  6. • You don’t have to buy and keep your server

    online for 24/7 • You don’t have to write all the backend code for the server • You don’t have to create and manage the databases • Managing a server requires a lot of attention too • No more hustle for a boring backend work! • REAL TIME is no easier !! 6 Why Firebase?
  7. Introduction ❏ Serverless ❏ Historical Background 2

  8. Serverless 8

  9. Historical Background 9

  10. Historical Background 10 May 2012 Beta Launch Raise $1.1 Million

    2014 Launch Firebase Hosting and authentication 2011 Foundation of Envolve June 2013 Raise $5.6 Million October 2014 Acquired by Google! October 2017 Launch of Firestore
  11. Services ❏ Firebase Authentication ❏ Firestore ❏ Storage ❏ Functions

    ❏ Hosting ❏ And a LOT more!! 3
  12. Firebase Authentication 4

  13. AUTHENTICATION! 13 Enable Sign in providers with 2 line of

    code.
  14. AUTHENTICATION! 14 Manage user emails for reset password with no

    code!
  15. AUTHENTICATION! 15 Manage Accounts

  16. Firestore 5

  17. Firestore A NoSQL real time database 17 Structure SDK Authentication

    Real Time Indexes
  18. No Fancy JOIN queries! No Normalization! Data Duplication ? No

    problem => Read vs Write 18 NoSQL !!
  19. Large Collections Small Documents? 19 Firestore Data Model

  20. 20 Firestore Data Model

  21. 21 Firestore Data Model

  22. 22 Filtration of documents

  23. Indexes 23

  24. Indexes 24

  25. What about • Full Text Search • ORs • Not

    Equal • Nil 25
  26. O(Output) If output is 6 results it’s the same time

    if we are querying 10 documents or 10,000,000 documents 26 Firestore Data Model
  27. AUTHENTICATION & Rules 27

  28. Real Time 28

  29. 29 ACL?

  30. Tricks: ACL 30

  31. 31 Many to Many?

  32. Tricks: Many to Many 32

  33. 33

  34. Tricks: Many to Many 34

  35. Pagination 35 Through the SDK: • Limit Function • start(After:

    []) => Takes an array of values or Document ID • Don’t use offset as it charges for all reads Ex: query.limit(20).offset(40) => will charge of 60 reads
  36. 36 Enabled by default in Android & iOS Can be

    enabled in WEB
  37. PRICING !! 37

  38. Storage 6

  39. Storage! Save anything with the power of rules and the

    integration with authentication! 39
  40. Functions 7

  41. 41 Functions Triggers HTTP

  42. Hosting 8

  43. Hosting 43

  44. A lot MORE!! 9 • Firebase Analytics • Dynamic Links

    • Cloud Messaging • Predictions • AdMob • Dynamic Links • Adwords • Remote Config • App Indexing • Performance Monitoring • Crash Reporting • Test Lab • Crashlytics
  45. References • Firebase Youtube Channel • Firebase Documentation 45

  46. 46 Thanks! Any questions?