One of the major selling points of Cloud Functions is the potential for major cost savings. Because functions only use compute resources during invocation, they tend to be much cheaper than maintaining dedicated services that tie up resources throughout their lifetime.
Cloud Functions are billed based on a few operational metrics:
- Number of invocations
- Provisioned compute resources and duration of execution
- Network resources
For number of invocations, functions are charged in units of millions. The current price for this is $0.40 per million invocations per month, with the first two million invocations per month being free. Compute resources are calculated as units of 100 milliseconds execution time multiplied by the amount of compute resources allocated during deployment with the --memory flag. For network resources, all inbound traffic is free, while outbound...