LocalStack vs Serverless

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

LocalStack

53
133
+ 1
33
Serverless

1.3K
1.2K
+ 1
26
Add tool

LocalStack vs Serverless: What are the differences?

Introduction

LocalStack and Serverless are both popular tools used in cloud computing and software development. While they have some similarities, there are key differences that make them unique in their own ways.

  1. Deployment Model: LocalStack is used for local development and testing, allowing developers to simulate cloud services locally without the need for actual cloud resources. On the other hand, Serverless is a framework that allows developers to deploy and run serverless applications on various cloud platforms, such as AWS, Azure, and Google Cloud.

  2. Scope of Services: LocalStack provides a wide range of services that can be used locally, including popular ones like S3, DynamoDB, Lambda, and SQS. It aims to replicate the core functionality of various AWS services. Serverless, on the other hand, focuses more on the deployment and management of serverless applications rather than providing a full suite of services. It provides a framework to easily define, deploy, and manage serverless functions or applications.

  3. Integration with Cloud Providers: LocalStack does not require any integration with cloud providers as it is a standalone tool used for local development and testing. Serverless, however, requires integration with different cloud providers, such as AWS, Azure, or Google Cloud, as it is used for deploying serverless applications on those platforms. It provides a unified interface and deployment process for different cloud providers.

  4. Community Support: LocalStack has an active open-source community supporting its development and maintenance. It is constantly updated with new features and bug fixes based on community contributions. Serverless also has a strong community support and a large user base. Its community continuously contributes to the development of the framework and provides extensive documentation and resources.

  5. Cost and Pricing Model: LocalStack is a free and open-source tool, making it cost-effective for local development and testing purposes. Serverless, on the other hand, is also free to use, but the cost will vary depending on the cloud provider resources used for deploying serverless applications. Cloud provider costs need to be considered when using Serverless in production environments.

  6. Flexibility and Customization: LocalStack allows developers to create custom scenarios and test cases by simulating different AWS services locally. It provides flexibility in testing and replicating specific service behaviors. Serverless, on the other hand, offers flexibility in defining and configuring serverless functions or applications, allowing developers to customize their application's behavior and resources.

In summary, LocalStack is primarily used for local development and testing, providing a wide range of AWS service simulations, while Serverless is a deployment framework for running serverless applications on various cloud platforms, with a focus on ease of deployment, management, and customization.

Decisions about LocalStack and Serverless

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 LocalStack
Pros of Serverless
  • 4
    Integration with Python/nosetests
  • 4
    Local/offline testing
  • 4
    No dependency on cloud
  • 3
    Available as Docker image
  • 3
    Continuous integration
  • 3
    The correct URL is https://github.com/localstack/locals
  • 3
    Integration with Java/JUnit
  • 3
    Increases dev speed
  • 3
    Easy to use
  • 3
    Cost effective testing
  • 14
    API integration
  • 7
    Supports cloud functions for Google, Azure, and IBM
  • 3
    Lower cost
  • 1
    Auto scale
  • 1
    Openwhisk

Sign up to add or upvote prosMake informed product decisions

Cons of LocalStack
Cons of Serverless
  • 2
    Doesn't work well on Windows
  • 1
    No proper admin panel/web UI
    Be the first to leave a con

    Sign up to add or upvote consMake informed product decisions

    - No public GitHub repository available -

    What is LocalStack?

    LocalStack provides an easy-to-use test/mocking framework for developing Cloud applications.

    What is Serverless?

    Build applications comprised of microservices that run in response to events, auto-scale for you, and only charge you when they run. This lowers the total cost of maintaining your apps, enabling you to build more logic, faster. The Framework uses new event-driven compute services, like AWS Lambda, Google CloudFunctions, and more.

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

    What companies use LocalStack?
    What companies use Serverless?
    See which teams inside your own company are using LocalStack or Serverless.
    Sign up for StackShare EnterpriseLearn More

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

    What tools integrate with LocalStack?
    What tools integrate with Serverless?

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

    What are some alternatives to LocalStack and Serverless?
    OpenStack
    OpenStack is a cloud operating system that controls large pools of compute, storage, and networking resources throughout a datacenter, all managed through a dashboard that gives administrators control while empowering their users to provision resources through a web interface.
    Minio
    Minio is an object storage server compatible with Amazon S3 and licensed under Apache 2.0 License
    AWS Amplify
    A JavaScript library for frontend and mobile developers building cloud-enabled applications. The library is a declarative interface across different categories of operations in order to make common tasks easier to add into your application. The default implementation works with Amazon Web Services (AWS) resources but is designed to be open and pluggable for usage with other cloud services that wish to provide an implementation or custom backends.
    AWS CLI
    It is a unified tool to manage your AWS services. With just one tool to download and configure, you can control multiple AWS services from the command line and automate them through scripts.
    Bash-My-AWS
    It is a simple but extremely powerful set of CLI commands for managing resources on Amazon Web Services. They harness the power of Amazon's AWSCLI, while abstracting away verbosity. The project implements some innovative patterns but (arguably) remains simple, beautiful and readable.
    See all alternatives