Looking for Alternatives to ExpressJS for AWS Lambda

August 4, 2025 1 answer
Asked by zero hour debate
Hey folks! I'm searching for a good alternative to ExpressJS for use with AWS Lambdas. We utilize the serverless framework for our middleware in our SaaS application, but I find API Gateway a bit cumbersome to set up, particularly when managing multiple API endpoints. The routing can get tricky, and I'm also trying to steer clear of vendor lock-in. I've noticed that Express isn't ideally suited for serverless environments since using it requires an additional library like serverless-http, and then there's the hassle of serverless-offline passing a Buffer to the API instead of the actual body, which then needs extra middleware to parse back to the appropriate Content-Type. It's been quite frustrating! I had some thoughts about Fastify and Hono but I'm wary of adopting newer frameworks that might not stick around. Any suggestions?

Answers

CLOUD ATLAS NOTES
When it comes to Lambdas, there aren't many solid alternatives. Even if you move to a container-backed service, API Gateway has tons of benefits, like built-in authentication and rate limiting. Itโ€™s pretty hard to compete with that when thinking custom.

zero hour debate: Hmm, Iโ€™ll definitely check that out. Thanks for the input!

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions