Need advice about which tool to choose?Ask the StackShare community!

AWS Lambda

24.1K
18.7K
+ 1
432
Google Cloud Run

270
236
+ 1
62
Add tool

AWS Lambda vs Google Cloud Run: What are the differences?

Introduction

AWS Lambda and Google Cloud Run are both serverless computing platforms that allow developers to build and deploy applications without managing infrastructure. However, there are several key differences between the two platforms that developers should be aware of before choosing one for their projects.

  1. Performance: AWS Lambda is known for its fast start times and low latency, making it a great choice for applications that require quick response times. On the other hand, Google Cloud Run containers have a longer startup time, but once running, they can handle a high number of concurrent requests, making them more suitable for applications that require high scalability.

  2. Pricing Model: AWS Lambda follows a pay-as-you-go model, where you are billed based on the number of requests and the duration of execution. On the other hand, Google Cloud Run offers a differentiated pricing model, where you are billed based on the CPU allocation and memory usage, allowing you to optimize costs based on your specific application requirements.

  3. Environment Flexibility: AWS Lambda supports a wide range of programming languages, including JavaScript, Python, Java, and C#, providing developers with more flexibility in their choice of language. Google Cloud Run, on the other hand, currently only supports containers, which means you can use any language that can be packaged into a container image.

  4. Integration with Ecosystem: AWS Lambda has a rich ecosystem of services and integrations, including the AWS Serverless Application Model (SAM), AWS Step Functions, and AWS API Gateway, making it easier to build and deploy complex serverless applications. Google Cloud Run integrates well with other Google Cloud services, such as Cloud Build for CI/CD, Cloud Pub/Sub for messaging, and Cloud Logging for monitoring.

  5. Automatic Scaling: Both AWS Lambda and Google Cloud Run offer automatic scaling based on request traffic, but they have different scaling mechanisms. AWS Lambda uses a combination of requests per second and concurrent executions to scale, while Google Cloud Run scales based on the number of concurrent requests.

  6. Deployment Options: AWS Lambda provides a native deployment mechanism through its console, CLI, or AWS CloudFormation, making it easy to manage and deploy functions. Google Cloud Run can be deployed using either the Google Cloud Console or the gcloud command-line tool, and it also integrates well with other deployment tools like Cloud Build.

Summary

In summary, AWS Lambda and Google Cloud Run have key differences in terms of performance, pricing model, environment flexibility, integration with ecosystem, scaling mechanisms, and deployment options. Developers should consider these differences when choosing a serverless platform for their applications.

Decisions about AWS Lambda and Google Cloud Run
Clifford Crerar
Software Engineer at Bidvest Advisory Services ยท | 9 upvotes ยท 69.3K views

Run cloud service containers instead of cloud-native services

  • Running containers means that your microservices are not "cooked" into a cloud provider's architecture.
  • Moving from one cloud to the next means that you simply spin up new instances of your containers in the new cloud using that cloud's container service.
  • Start redirecting your traffic to the new resources.
  • Turn off the containers in the cloud you migrated from.
See more
Tim Nolet

When adding a new feature to Checkly rearchitecting some older piece, I tend to pick Heroku for rolling it out. But not always, because sometimes I pick AWS Lambda . The short story:

  • Developer Experience trumps everything.
  • AWS Lambda is cheap. Up to a limit though. This impact not only your wallet.
  • If you need geographic spread, AWS is lonely at the top.
The setup

Recently, I was doing a brainstorm at a startup here in Berlin on the future of their infrastructure. They were ready to move on from their initial, almost 100% Ec2 + Chef based setup. Everything was on the table. But we crossed out a lot quite quickly:

  • Pure, uncut, self hosted Kubernetes โ€” way too much complexity
  • Managed Kubernetes in various flavors โ€” still too much complexity
  • Zeit โ€” Maybe, but no Docker support
  • Elastic Beanstalk โ€” Maybe, bit old but does the job
  • Heroku
  • Lambda

It became clear a mix of PaaS and FaaS was the way to go. What a surprise! That is exactly what I use for Checkly! But when do you pick which model?

I chopped that question up into the following categories:

  • Developer Experience / DX ๐Ÿค“
  • Ops Experience / OX ๐Ÿ‚ (?)
  • Cost ๐Ÿ’ต
  • Lock in ๐Ÿ”

Read the full post linked below for all details

See more
Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of AWS Lambda
Pros of Google Cloud Run
  • 129
    No infrastructure
  • 83
    Cheap
  • 70
    Quick
  • 59
    Stateless
  • 47
    No deploy, no server, great sleep
  • 12
    AWS Lambda went down taking many sites with it
  • 6
    Event Driven Governance
  • 6
    Extensive API
  • 6
    Auto scale and cost effective
  • 6
    Easy to deploy
  • 5
    VPC Support
  • 3
    Integrated with various AWS services
  • 11
    HTTPS endpoints
  • 10
    Fully managed
  • 10
    Pay per use
  • 7
    Concurrency: multiple requests sent to each container
  • 7
    Deploy containers
  • 7
    Serverless
  • 6
    Custom domains with auto SSL
  • 4
    "Invoke IAM permission" to manage authentication
  • 0
    Cons

Sign up to add or upvote prosMake informed product decisions

Cons of AWS Lambda
Cons of Google Cloud Run
  • 7
    Cant execute ruby or go
  • 3
    Compute time limited
  • 1
    Can't execute PHP w/o significant effort
    Be the first to leave a con

    Sign up to add or upvote consMake informed product decisions