The following are the key Cloud Functions characteristics:
- Serverless: Cloud Functions are completely serverless. The underlying infrastructure is abstracted from the end user.
- Event-driven: Cloud Functions are event-driven. There are triggered in response to an event or HTTP request. This means they are invoked only when needed and do not produce any cost when inactive.
- Stateless: Cloud Functions do not store state nor data. This allows them to work independently and scale as needed. It is very important to understand that each invocation has its own execution environment and does not share global variable memory or filesystems. To share state across function invocations, your function should use a service such as Cloud Datastore or Cloud Storage.
- Autoscaling: Cloud Functions scale from zero to the desired scale. Scaling is managed by GCP...