/aws-api-performance-bakeoff

Code and architecture diagrams for performance testing a few API approaches on AWS

Primary LanguageShell

AWS API Performance Bakeoff

This repository includes scripts for deploying an API that exposes a single endpoint. The endpoint accepts a payload via POST request and forwards the payload to an SNS topic.

Architectures

There are three different architectures for deploying this service:

  1. Using Fargate and an Application Load Balancer

  2. Using the Serverless Framework and AWS Lambda

  3. Using an API Gateway service proxy integration directly to SNS

Testing

For load testing, I used Locust. There's a locustfile in this directory.

To use, first install Locust:

pip install locustio

Then, run locust with the host of your deployed API:

locust --host=<your_host>

Navigate to localhost:8089 to kick off your load test.