Firebase Auth, Firestore & Storage (plugin)
  • 🚀Getting Started
  • Setup
    • Create a Firebase Project
    • Get Firebase access credentials
    • Offline Support
    • Secure your credentials and data
      • Restrict your api-key to your domain
      • Security Rules on Firebase
  • Plugin Elements
    • 🛠️About elements
    • 💾Data Schemas
    • Firebase Auth (Current User)
    • Firestore Data List
      • Firebase Geohash
      • Firestore Data (legacy)
    • Firestore Data Extractor
    • Firestore Data Single
    • Firestore Data Aggregation
    • Firestore Data Processor
    • Firebase Storage Upload Button
    • Firebase Action Listener
    • Firebase Dropdown Processor
  • Plugin Front-end Actions
    • 💻About front-end actions
    • 💾Field types table
    • Firestore
      • Create a new document
      • Update a document
      • Delete a document
      • Update a list of documents
      • Delete a list of documents
      • Batch Operations
        • Batch Operation Constructor
        • Batch Operation Commit
    • Firebase Auth
      • Sign the User Up
      • Log the User In
      • Log the User In with Google
      • Log the User In with Facebook
      • Log the User In with GitHub
      • Log the User Out
      • Update User's Profile
      • Update User's Password
      • Update User's Email
      • Send password reset email
        • Handle reset password code
      • Send verification email
        • Handle verify email code
      • Delete current user
    • Firebase Storage
      • Upload file base64
      • Delete uploaded file
  • Plugin Back-end Actions
    • ☁️About backend actions
    • Firestore Backend
      • Get a list of documents
      • Get a single document
      • Count a list of documents
      • Create a new document
      • Update a document
      • Delete a document
      • Update a list of documents
      • Delete a list of documents
    • Firebase Auth Backend
      • Create an account for someone else
      • Update another user's profile info
      • Delete a user account
      • Generate email confirmation link
      • Generate password reset link
      • Set user roles
Powered by GitBook
On this page
  1. Plugin Back-end Actions

About backend actions

PreviousDelete uploaded fileNextFirestore Backend

Last updated 11 months ago

Not like front-end actions, back-end actions run on Bubble's servers and allow for return values, which mean we can use "Result of step X" values as inputs in other actions. They also bring more security to your actions, since they hide Firebase Credential on the server (hence why many admin and sensible-data-dealing actions are server-sides).

But, as on the front-end, there is a caveat. They are extremely slow to start and run the first time. Though we're not sure how Bubble handles them on the back-end, our guess is that the first time they run, they have to "load the action to the server's memory". This process takes around 20-30 seconds.

After this first execution, they run faster for the next feel minutes, while they are "on the server's memory".

Important! Backend actions to interact with Firebase consume a lot of Workload Units, so we advise to use them only when they are no other alternatives. (e.g. in backend workflows or some actions that are only available to run server-side).

We suggest to always use front-end actions whem possible, for a better user experience, and use backend ones on , using to trigger them, so that the user won't suffer with long waits. Unless you need the actions return value, in that case, remember to show a loader element to give visual feedback to the user, other them Bubble's loading bar on top.

Back-end actions are also useful when you want to use Bubble and the backend for webhooks from other services.

As backend operations for Firebase run on a firebase-admin instance, they can bypass your Firestore Security Rules, so use them with caution.

☁️
Bubble's backend workflows
scheduled actions