Google Cloud Functions

Cloud Functions is Google’s serverless compute offering, with Beta announced in spring of 2017.

A serverless environment to build and connect cloud services. Construct applications from bite-sized business logic billed to the nearest 100 milliseconds, only while your code is running. Serve users from zero to planet-scale, all without managing any infrastructure.

The Google serverless platform consists of the compute service called Cloud Functions. It integrates well with other Google cloud services like:

There is a full list of services and event providers, that are supported.

How It Works

[insert diagram to showcase usage]

Language Support

Supports Node.js.

Security

Google Cloud Functions provide the ability to provide access control to create and manage functions by adding users to teams and by granting them permissions using Cloud IAM roles. Cloud Functions currently only supports primitive roles.

Tooling

gcloud CLI (beta) for functions.

Monitoring, Logging & Alerting

Logs emitted from Cloud Functions are automatically written to Stackdriver Logging. Stackdriver Logging allows storage, search, analysis, monitoring, and alerting of log data and events from various sources.

Stackdriver Monitoring provides visibility into the performance, uptime, and overall health of cloud-powered applications. It collects metrics, events, and metadata from various sources, ingests that data and generates insights via dashboards, charts, and alerts. It allows setting alerts on logs events based on user-defined log based metrics.

Cloud Audit Logging maintains two audit logs for each project and organization: Admin Activity and Data Access.

Debugging & Diagnostics

Stackdriver Debugger helps debug and inspect state of an application without using logging statements. It can capture the local variables & call stack and link it back to a specific line location in the source code.

Pricing

See Google Cloud Functions pricing page for details.

Limitations

Google Cloud Functions define quota limits in three different areas:

Google Cloud Functions Quota limits are very clearly documented. But, the quota limits defined by default can be increased on request.

Resources


Credits: Rupak Ganguly (@rupakg) ***