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

Amazon EBS

668
537
+ 1
82
AWS Lambda

23.6K
18.4K
+ 1
432
Add tool

AWS Lambda vs Amazon EBS: What are the differences?

AWS Lambda vs Amazon EBS

AWS Lambda and Amazon EBS are two essential services provided by Amazon Web Services (AWS). While both services are commonly used for serverless computing and storage, there are key differences between the two.

  1. Scalability: AWS Lambda enables auto-scaling by automatically adjusting resources based on the incoming workload. It allows the execution of code without provisioning or managing servers. On the other hand, Amazon EBS provides scalable block storage volumes that can be attached to EC2 instances, allowing the storage capacity to be flexibly adjusted.

  2. Billing: AWS Lambda charges users based on the number of requests and the duration of code execution in milliseconds, offering a pay-per-usage model. In contrast, Amazon EBS bills users based on the provisioned storage capacity, so users pay for the allocated storage regardless of usage.

  3. Execution Environment: AWS Lambda provides an execution environment where users can run their code without the need for server management. It supports several programming languages and offers serverless functions. However, Amazon EBS is a block-level storage service that provides persistent storage volumes for use with EC2 instances.

  4. Usage Pattern: AWS Lambda is commonly used for event-driven applications, real-time stream processing, and automatic scaling of APIs. It allows for rapid development and execution of code in response to events. On the other hand, Amazon EBS is generally utilized for persistent storage of data, databases, and file systems requiring higher I/O throughput.

  5. Scaling Limitations: AWS Lambda has certain limitations on execution duration, CPU usage, and memory allocation. It is designed to handle short-lived tasks and has a maximum execution duration of 15 minutes. In contrast, Amazon EBS can handle long-running applications and sustains consistent performance even for extended periods.

  6. Deployment Model: AWS Lambda supports serverless deployment, where users only need to upload their code and configure triggers. It abstracts the underlying infrastructure, allowing developers to focus on writing functions. Amazon EBS, on the other hand, requires manual deployment and configuration as it is primarily used for persistent storage of EC2 instances.

In summary, AWS Lambda is a serverless compute service that enables event-driven execution of code with auto-scaling capabilities, while Amazon EBS is a scalable block storage service used for persistent storage of data in EC2 instances.

Decisions about Amazon EBS and AWS Lambda

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
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Amazon EBS
Pros of AWS Lambda
  • 36
    Point-in-time snapshots
  • 27
    Data reliability
  • 19
    Configurable i/o performance
  • 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

Sign up to add or upvote prosMake informed product decisions

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

    Sign up to add or upvote consMake informed product decisions

    What is Amazon EBS?

    Amazon EBS volumes are network-attached, and persist independently from the life of an instance. Amazon EBS provides highly available, highly reliable, predictable storage volumes that can be attached to a running Amazon EC2 instance and exposed as a device within the instance. Amazon EBS is particularly suited for applications that require a database, file system, or access to raw block level storage.

    What is AWS Lambda?

    AWS Lambda is a compute service that runs your code in response to events and automatically manages the underlying compute resources for you. You can use AWS Lambda to extend other AWS services with custom logic, or create your own back-end services that operate at AWS scale, performance, and security.

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

    What companies use Amazon EBS?
    What companies use AWS Lambda?
    See which teams inside your own company are using Amazon EBS or AWS Lambda.
    Sign up for StackShare EnterpriseLearn More

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with Amazon EBS?
    What tools integrate with AWS Lambda?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    Blog Posts

    GitHubPythonNode.js+47
    54
    72315
    GitHubDockerAmazon EC2+23
    12
    6566
    JavaScriptGitHubPython+42
    53
    21860
    What are some alternatives to Amazon EBS and AWS Lambda?
    Amazon EFS
    Amazon EFS is easy to use and offers a simple interface that allows you to create and configure file systems quickly and easily. With Amazon EFS, storage capacity is elastic, growing and shrinking automatically as you add and remove files.
    Amazon S3
    Amazon Simple Storage Service provides a fully redundant data storage infrastructure for storing and retrieving any amount of data, at any time, from anywhere on the web
    Google Cloud Storage
    Google Cloud Storage allows world-wide storing and retrieval of any amount of data and at any time. It provides a simple programming interface which enables developers to take advantage of Google's own reliable and fast networking infrastructure to perform data operations in a secure and cost effective manner. If expansion needs arise, developers can benefit from the scalability provided by Google's infrastructure.
    Azure Storage
    Azure Storage provides the flexibility to store and retrieve large amounts of unstructured data, such as documents and media files with Azure Blobs; structured nosql based data with Azure Tables; reliable messages with Azure Queues, and use SMB based Azure Files for migrating on-premises applications to the cloud.
    Minio
    Minio is an object storage server compatible with Amazon S3 and licensed under Apache 2.0 License
    See all alternatives