You can reduce latency and save money by going 'Lambdaless'

Serverless Tip #8: You can reduce latency and save money by going 'Lambdaless'

AWS API Gateway supports direct integrations with many other AWS Services such as DynamoDB, EventBridge, and SQS.

Instead of having a Lambda function transform the request and perform an SDK call, you can use VTL to transform the request and response and directly call the underlying service from your API.

Lambdaless patterns can reduce your cost and latencies.

While Lambda better handles complex business logic, direct integrations work wonders for simple use cases such as:

  • Putting incoming requests on an SQS queue
  • Publishing incoming requests to an EventBridge
  • GetItem requests to DynamoDB