Skip to Content
Serverless Web Applications with React and Firebase
book

Serverless Web Applications with React and Firebase

by Mayur Tanna, Harmeet Singh
April 2018
Intermediate to advanced content levelIntermediate to advanced
284 pages
6h 43m
English
Packt Publishing
Content preview from Serverless Web Applications with React and Firebase

Life cycle of a function

Life cycle of a Cloud function can be roughly divided into five stages, which are these:

  1. You write code for a new function and define the conditions when the function should get executed. The function definition or code also contains the details of the event provider, such as Realtime database or FCM.
  2. You deploy the function using the Firebase CLI, and Firebase connects it to the event provider defined in the code.
  3. When the event provider generates the event that matches the conditions defined in the function, it gets executed.
  4. Google automatically scales the number of instances based on the workload.
  5. Whenever you update the code of a function or delete a function, Google will automatically update or clean up the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Building Web Applications with Firebase

Building Web Applications with Firebase

Gareth Brown
React Native in Action

React Native in Action

nader dabit, Nickie Buckner

Publisher Resources

ISBN: 9781788477413Supplemental Content