Skip to content

Firebase usage: A view from a first-time user #110

@reboottime

Description

@reboottime

Firebase Core functionalities

  • Authentication : support username password an oAuth support, free for less than 100 k users.
  • Storage: to store static data, like AWS s3
  • Firestore: a NoSQL database , yet contains subordinate collections using nested json format
    • provide built-in http interaction CRUD support
    • use snapshot and collection concept
    • practices about using nested collection vs create a new collection: similar to MongoDB, collection relationship and subordinary collection size
  • Realtime Database: more expensive, for high latency sensitive data storage
  • Security controls

image

About data driven

  1. One thing you might notice is that Firebase has a series of **on** functions, such as **onSnapshot**, **onValue**, and so on. These functions utilize WebSockets to establish real-time communication between the frontend and the backend.
  2. So if your data is updated by stages, and frontend side subscribes this data changes, you might need a status field to indicate the data stage of changes.

References

  1. Getting Started with Cloud Functions for Firebase using TypeScript

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions