This application demonstrates various features of the Lambda Dispatch system. Use the endpoints below to test different aspects of the service.
Quick health check that doesn't wait for initialization.
curl http://lambdadispatch-demoapp-pr-274.ghpublic.pwrdrvr.com/health-quick
Full health check that ensures initialization is complete (waits for 7000ms).
curl http://lambdadispatch-demoapp-pr-274.ghpublic.pwrdrvr.com/health
Simple ping endpoint that returns "pong".
curl http://lambdadispatch-demoapp-pr-274.ghpublic.pwrdrvr.com/ping
Load test with hey:
hey -h2 -c 100 -n 10000 http://lambdadispatch-demoapp-pr-274.ghpublic.pwrdrvr.com/ping
Returns all HTTP headers from the incoming request as JSON.
curl http://lambdadispatch-demoapp-pr-274.ghpublic.pwrdrvr.com/headers
Delays the response by the specified number of milliseconds.
curl http://lambdadispatch-demoapp-pr-274.ghpublic.pwrdrvr.com/delay?delay=500
Returns a chunked response with an initial payload, 5 second delay, then final payload.
curl http://lambdadispatch-demoapp-pr-274.ghpublic.pwrdrvr.com/chunked-response
Streams the request body directly to the response with back pressure.
curl -X POST -H "Content-Type: text/plain" --data "Hello World" http://lambdadispatch-demoapp-pr-274.ghpublic.pwrdrvr.com/echo
Debug mode:
curl -X POST -H "Content-Type: text/plain" -H "X-Lambda-Dispatch-Debug: true" --data "Hello World" http://lambdadispatch-demoapp-pr-274.ghpublic.pwrdrvr.com/echo
Reads the entire request body into memory before sending the response.
curl -X POST -H "Content-Type: text/plain" --data "Hello World" http://lambdadispatch-demoapp-pr-274.ghpublic.pwrdrvr.com/echo-slow
Echoes each chunk of the request body twice, doubling the response size.
curl -X POST -H "Content-Type: text/plain" --data "Hello World" http://lambdadispatch-demoapp-pr-274.ghpublic.pwrdrvr.com/double-echo
Echoes half of each chunk of the request body, halving the response size.
curl -X POST -H "Content-Type: text/plain" --data "Hello World" http://lambdadispatch-demoapp-pr-274.ghpublic.pwrdrvr.com/half-echo
Returns the request line, headers, and body. Works with any HTTP method.
curl -X POST -H "Content-Type: text/plain" --data "Hello World" http://lambdadispatch-demoapp-pr-274.ghpublic.pwrdrvr.com/debug
Reads an image file from S3 and returns it. Good for testing larger payloads.
curl -o image.jpg http://lambdadispatch-demoapp-pr-274.ghpublic.pwrdrvr.com/read-s3
Load test with hey:
hey -h2 -c 100 -n 1000 http://lambdadispatch-demoapp-pr-274.ghpublic.pwrdrvr.com/read-s3
Reads a random item from DynamoDB.
curl http://lambdadispatch-demoapp-pr-274.ghpublic.pwrdrvr.com/read
Load test with k6:
k6 run k6/read-dynamodb-constant.js
Returns an unusual HTTP status code (519).
curl -i http://lambdadispatch-demoapp-pr-274.ghpublic.pwrdrvr.com/odd-status
Serves a static image file stored in the application.
curl -o local-image.jpg http://lambdadispatch-demoapp-pr-274.ghpublic.pwrdrvr.com/public/silly-test-image.jpg