In a typical lifecycle, a Firebase Realtime Database function does the following: Waits for changes to a particular Realtime Database location. Triggers when an event occurs and performs its tasks (see What can I do with Cloud Functions? for examples of use cases).