Google Cloud Functions vs. AWS Lambda: The Fight for Serverless Cloud Domination

Serverless computing: What is it and why is it important?

A quick background

The general concept of serverless computing was introduced to the market by Amazon Web Services (AWS) around 2014 with the release of AWS Lambda. As we know, cloud computing has made it possible for users to manage virtual computers and services, but customers still have to be proficient with provisioning and managing compute resources. 

AWS decided to take another step in making cloud computing easier and more accessible by managing the underlying compute layer (or abstracting the infrastructure layer as you might hear it said). In the case of AWS, Lambda runs a code function without requiring you to provision the virtual machine and the operating system that runs that code. 

In this article, we’ll cover the basic functions of serverless computing. To deep-dive into this topic and learn how to build, deploy, and manage the Serverless framework, check out Cloud Academy’s Serverless Training Library. With Learning Paths, Courses, Quizzes, Exams, and Hands-on Labs, you’ll gain the technical knowledge and practical experience that you need to integrate serverless architecture into your cloud IT environment.

Google Cloud Functions vs. AWS Lambda

Why is serverless computing important?

Let’s clear something up first: There is still a server involved in the serverless model, but the cloud provider manages that resource, not you, so serverless computing can possibly be better described as Functions-as-a-Service. Serverless computing is a bit like a car rental service. You just want a vehicle to get you to your destination, whether that is just across town or across the country. It is expected you will drive carefully when using the vehicle, and you will report any damage. But you are not expected to pay for the car to be built or delivered to the pickup facility first before you use it, and you are not expected to contribute to the cost of buying or preparing the car. You only pay for the time that we use the service. 

The second thing to bear in mind with serverless computing — and this is the main benefit — is the effect of all the managing that the cloud provider does for you, namely, you have more time to work on developing and delivering the application! 

To summarize, you get these advantages from serverless computing:

  • Less worry — you don’t have to provision or manage the server
  • Scalability — can handle any workloads so your work remains viable
  • Cost — costs can stay under control as you cannot overprovision

General info on AWS Lambda and Google Cloud Functions

Amazon was first to market with serverless functions through their Lambda offering in 2014, and as such has been at the forefront of development. Google Cloud Functions was launched to beta in 2017 and to general availability in 2018. Google’s offering was about four years behind but has managed to catch up in many ways.

Lambda can be used in conjunction with other like services on AWS such as: 

  • Serverless Application Model (SAM) — an open-source framework for building serverless applications
  • Serverless Application Repository — a managed repository for serverless applications
  • Cloud9 — an integrated development environment (IDE) for writing, running, and debugging code

Google is part of a larger family of serverless offerings which include:

  • Cloud Functions — serverless code
  • App Engine — serverless application development platform
  • Cloud Run —  stateless containers

It’s good to remember that in general, both Lambda and Cloud Functions have been designed to play nicely with tons of other services, as long as they’re in the same provider ecosystem.

Practical Applications of Google Cloud Functions and AWS Lambda

Here are a couple of real-world examples of serverless computing, whether they’re implemented on Google Cloud Functions or Amazon Lambda:

  • Realtime stream processing — gather data without setting up infrastructure or logging. This can be event-driven so that it the functions work whether you have a few requests per day or thousands per second.
  • Connecting to third party applications/hardware — you can use serverless functions as lightweight integrations to other applications automate certain tasks within your cloud environment.

You can get more detailed and concrete insight and (importantly) hands-on practice by testing out Cloud Academy’s Hands-on Labs for Google Cloud Functions and AWS Lambda.

Hands-on Lab for Google Cloud Functions Events

In the Cloud Functions Hands-on Lab, you can:

  • Learn basic tenets of serverless architecture
  • Create functions from the GCP console
  • Test your skills against a subject matter expert’s real-world tasks

You can also try out our Intro to AWS Lambda Hands-on Lab guides you through building functions with Node.js. 

Hands-on Lab on Intro to Lambda

Google Cloud Functions and AWS Lambda Features

Functionality AWS Lambda Google Cloud Functions
Scalability & availability Automatic scaling (transparent) Automatic scaling
Max. # of functions Unlimited functions 1000 functions per project
Concurrent executions 1000 parallel executions per account per region  1000 parallel executions (per function, for background functions)
Max. execution time 900 seconds (15 minutes) 540 seconds (9 minutes)
Supported Languages Java, Go, PowerShell, Node.js, C#, Python, and Ruby code, and a Runtime API which allows you to use any additional programming languages to author your functions Node.js, Python, Go
Deployments .zip or .jar file consisting of your code and any dependencies ZIP upload, Cloud Storage, or Cloud Source Repositories
Versioning Versions and aliases Cloud Source branch/tag
Event-driven Event Sources (S3, SNS, SES, DynamoDB, Kinesis, CloudWatch) Cloud Pub/Sub or Cloud Storage Object Change Notifications
HTTP(S) invocation API Gateway HTTP trigger
Logging CloudWatch Logs Stackdriver Logging
Monitoring CloudWatch and X-Ray Stackdriver Monitoring
In-browser code editor Only if you don’t have dependencies Only with Cloud Source Repositories
Granular IAM IAM roles IAM roles
Pricing 1M requests for free, then $0.20/1M requests, plus $0.00001667/GB-sec 2M requests for free, then $0.40/1M invocations, plus $0.0000025/GB-sec

Conclusion

Serverless functions are a great way to leverage the elasticity of cloud deployments. Make sure to consider the big picture in your environment, such as your medium- to long-term plans and how you want to maintain code that you create for serverless architecture. 

You can get further detailed guidance on serverless architecture by checking out our huge catalog of Learning Paths, Courses, Quizzes, Exams, and Hands-on Labs.

Joe Nemer

Written by

Joe Nemer

Joe is a Technical Researcher at Cloud Academy and works to help readers connect concepts in ways they haven't thought of before. Side interests include all sorts of waves — ocean waves, sine waves, just not goodbye waves.


Related Posts

Alisha Reyes
Alisha Reyes
— December 5, 2019

New on Cloud Academy: AWS Solution Architect Lab Challenge, Azure Hands-on Labs, Foundation Certificate in Cyber Security, and Much More

Now that Thanksgiving is over and the craziness of Black Friday has died down, it's now time for the busiest season of the year. Whether you're a last-minute shopper or you already have your shopping done, the holidays bring so much more excitement than any other time of year. Since our...

Read more
  • AWS
  • AWS solution architect
  • AZ-203
  • Azure
  • cyber security
  • FCCS
  • Foundation Certificate in Cyber Security
  • Google Cloud Platform
  • Kubernetes
Avatar
Cloud Academy Team
— December 4, 2019

Understanding Enterprise Cloud Migration

What is enterprise cloud migration? Cloud migration is about moving your data, applications, and even infrastructure from your on-premises computers or infrastructure to a virtual pool of on-demand, shared resources that offer compute, storage, and network services at scale. Why d...

Read more
  • AWS
  • Azure
  • Data Migration
Wendy Dessler
Wendy Dessler
— November 27, 2019

6 Reasons Why You Should Get an AWS Certification This Year

In the past decade, the rise of cloud computing has been undeniable. Businesses of all sizes are moving their infrastructure and applications to the cloud. This is partly because the cloud allows businesses and their employees to access important information from just about anywhere. ...

Read more
  • AWS
  • Certifications
  • certified
Avatar
Andrea Colangelo
— November 26, 2019

AWS Regions and Availability Zones: The Simplest Explanation You Will Ever Find Around

The basics of AWS Regions and Availability Zones We’re going to treat this article as a sort of AWS 101 — it’ll be a quick primer on AWS Regions and Availability Zones that will be useful for understanding the basics of how AWS infrastructure is organized. We’ll define each section,...

Read more
  • AWS
Avatar
Dzenan Dzevlan
— November 20, 2019

Application Load Balancer vs. Classic Load Balancer

What is an Elastic Load Balancer? This post covers basics of what an Elastic Load Balancer is, and two of its examples: Application Load Balancers and Classic Load Balancers. For additional information — including a comparison that explains Network Load Balancers — check out our post o...

Read more
  • ALB
  • Application Load Balancer
  • AWS
  • Elastic Load Balancer
  • ELB
Albert Qian
Albert Qian
— November 13, 2019

Advantages and Disadvantages of Microservices Architecture

What are microservices? Let's start our discussion by setting a foundation of what microservices are. Microservices are a way of breaking large software projects into loosely coupled modules, which communicate with each other through simple Application Programming Interfaces (APIs). ...

Read more
  • AWS
  • Docker
  • Kubernetes
  • Microservices
Nisar Ahmad
Nisar Ahmad
— November 12, 2019

Kubernetes Services: AWS vs. Azure vs. Google Cloud

Kubernetes is a popular open-source container orchestration platform that allows us to deploy and manage multi-container applications at scale. Businesses are rapidly adopting this revolutionary technology to modernize their applications. Cloud service providers — such as Amazon Web Ser...

Read more
  • AWS
  • Azure
  • Google Cloud
  • Kubernetes
Avatar
Stuart Scott
— October 31, 2019

AWS Internet of Things (IoT): The 3 Services You Need to Know

The Internet of Things (IoT) embeds technology into any physical thing to enable never-before-seen levels of connectivity. IoT is revolutionizing industries and creating many new market opportunities. Cloud services play an important role in enabling deployment of IoT solutions that min...

Read more
  • AWS
  • AWS IoT Events
  • AWS IoT SiteWise
  • AWS IoT Things Graph
  • IoT
Avatar
Cloud Academy Team
— October 23, 2019

Which Certifications Should I Get?

As we mentioned in an earlier post, the old AWS slogan, “Cloud is the new normal” is indeed a reality today. Really, cloud has been the new normal for a while now and getting credentials has become an increasingly effective way to quickly showcase your abilities to recruiters and compan...

Read more
  • AWS
  • Azure
  • Certifications
  • Cloud Computing
  • Google Cloud Platform
Valery Calderón Briz
Valery Calderón Briz
— October 22, 2019

How to Go Serverless Like a Pro

So, no servers? Yeah, I checked and there are definitely no servers. Well...the cloud service providers do need servers to host and run the code, but we don’t have to worry about it. Which operating system to use, how and when to run the instances, the scalability, and all the arch...

Read more
  • AWS
  • Lambda
  • Serverless
Avatar
Stuart Scott
— October 16, 2019

AWS Security: Bastion Hosts, NAT instances and VPC Peering

Effective security requires close control over your data and resources. Bastion hosts, NAT instances, and VPC peering can help you secure your AWS infrastructure. Welcome to part four of my AWS Security overview. In part three, we looked at network security at the subnet level. This ti...

Read more
  • AWS
Avatar
Sudhi Seshachala
— October 9, 2019

Top 13 Amazon Virtual Private Cloud (VPC) Best Practices

Amazon Virtual Private Cloud (VPC) brings a host of advantages to the table, including static private IP addresses, Elastic Network Interfaces, secure bastion host setup, DHCP options, Advanced Network Access Control, predictable internal IP ranges, VPN connectivity, movement of interna...

Read more
  • AWS
  • best practices
  • VPC