Softwr

Automation Integration · head to head

AWS Step Functions vs Locust

AWS Step Functions logo

AWS Step Functions

Automation Integration

Serverless workflow orchestration service for coordinating AWS services

From
Free
Free plan
Yes
Locust logo

Locust

Testing

Open-source load testing tool where scenarios are written in plain Python

From
Free
Free plan
Yes

The short version

  • AWS Step Functions is a serverless orchestration service; Locust is an MIT-licensed load testing tool.
  • Both are free.
  • Only AWS Step Functions lists visual drag and drop workflow builder; only Locust lists test scenarios written in Python.
  • Where AWS Step Functions falls short: built around AWS services, so orchestration across other clouds is awkward.
  • Where Locust falls short: scenarios must be written in Python; there is no graphical recorder.

How do AWS Step Functions and Locust differ?

AWS Step Functions and Locust differ on pricing model (Usage-based against Open-source), platforms (Web against API) and category. Only the attributes on which AWS Step Functions and Locust actually diverge.

Attributes where AWS Step Functions and Locust differ
AttributeAWS Step FunctionsLocust
Pricing modelUsage-basedOpen-source
PlatformsWebAPI
CategoryAutomation IntegrationTesting

Identical on both: starting price (Free), free tier (Yes).

Which features does each one have?

They share no listed features; 8 appear only for AWS Step Functions and 8 only for Locust. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in AWS Step Functions

  • Visual drag and drop workflow builder
  • State machine definitions
  • Direct integration with over 220 AWS services
  • Built in retry, catch and timeout handling
  • Parallel processing over S3 data
  • Standard workflows up to one year
  • Express workflows for high volume short tasks
  • Private API support through PrivateLink and VPC Lattice

Only in Locust

  • Test scenarios written in Python
  • Distributed load generation
  • Real-time web UI
  • Headless mode for CI/CD
  • Lightweight greenlet users on gevent
  • Extensible with custom load shapes and reporting
  • VS Code extension
  • Azure Load Testing support

What is each one used for?

AWS Step Functions is most often brought in for coordinating Lambda functions; Locust for load testing web APIs. The jobs each tool is most often brought in to do.

AWS Step Functions

  • Coordinating Lambda functionsnot Locust
  • Large scale parallel data processing over S3not Locust
  • Order and approval workflowsnot Locust
  • Retrying and handling errors across AWS servicesnot Locust

Locust

  • Load testing web APIsnot AWS Step Functions
  • Stress testing websitesnot AWS Step Functions
  • CI performance checksnot AWS Step Functions
  • Simulating user behaviour as codenot AWS Step Functions

Where do AWS Step Functions and Locust fall short?

AWS Step Functions's most cited limit: built around AWS services, so orchestration across other clouds is awkward. Locust's: scenarios must be written in Python; there is no graphical recorder. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

AWS Step Functions

  • Built around AWS services, so orchestration across other clouds is awkward
  • Standard workflows bill per state transition and each retry counts as another
  • Express workflows have no listed free tier and bill for requests and duration
  • Prices in the examples are for US East (N. Virginia); other regions differ

Locust

  • Scenarios must be written in Python; there is no graphical recorder
  • Built mainly for HTTP; other protocols need custom code
  • Hosted runs and support come from the separate Locust.cloud service
  • Large tests need several machines configured for distributed mode

How much do AWS Step Functions and Locust cost?

AWS Step Functions is free to use; Locust is free to use. Plan by plan below, from each vendor's own pricing page.

AWS Step Functions

Free

No published plan breakdown. See the AWS Step Functions review.

Locust

Free

No published plan breakdown. See the Locust review.

Which should you pick?

Choose AWS Step Functions if

  • You need visual drag and drop workflow builder.
  • You want to start without paying.
  • You also want state machine definitions.

Choose Locust if

  • You need test scenarios written in python.
  • You want to start without paying.
  • You work on API.
  • You also want distributed load generation.

Questions people ask

Is AWS Step Functions or Locust better?
It depends on the job. AWS Step Functions fits coordinating Lambda functions; Locust fits load testing web APIs. AWS Step Functions starts at Free and Locust at Free.
Which is cheaper, AWS Step Functions or Locust?
AWS Step Functions starts at Free and Locust at Free.
Does AWS Step Functions or Locust run on more platforms?
AWS Step Functions runs on Web. Locust runs on API.
Can I use AWS Step Functions for free?
Both have a free tier, so you can try either at no cost before committing.
What is AWS Step Functions best used for?
AWS Step Functions is most often used for coordinating lambda functions, large scale parallel data processing over s3, order and approval workflows, retrying and handling errors across aws services. Of those, coordinating lambda functions and large scale parallel data processing over s3 are not what Locust is typically brought in for.
What can AWS Step Functions do that Locust cannot?
AWS Step Functions covers Visual drag and drop workflow builder, State machine definitions, Direct integration with over 220 AWS services, Built in retry, catch and timeout handling. Locust covers Test scenarios written in Python, Distributed load generation, Real-time web UI, Headless mode for CI/CD.

Answered from the vendors’ own pages

AWS Step Functions: How are Standard workflows billed?

Per state transition, at 0.000025 US dollars in US East (N. Virginia) per the pricing examples. A free tier of 4,000 transitions a month does not expire, and each retry counts as another transition.

Source
Locust: What licence does Locust use?

The GitHub repository states the MIT licence.

Source
AWS Step Functions: How are Express workflows billed?

By requests at 1.00 US dollar per million, plus duration at 0.00001667 dollars per GB second, rounded up to the nearest 100 ms.

Source
Locust: How do I install it?

Install from PyPI with pip install locust and run locust -f locustfile.py.

Source
AWS Step Functions: What can it connect to?

AWS says it integrates directly with over 220 AWS services and more than 10,000 APIs, including Lambda, ECS, DynamoDB, SQS and SageMaker.

Source
Locust: Does it support distributed testing?

Yes, load can be spread across multiple machines.

Source
AWS Step Functions: Does it handle errors?

Yes. The features page cites built in try and catch and retry handling, plus timeouts and fallback recovery code.

Source
Share

Related pages

Other head to heads