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?
1 Answer
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.
Hmm, I’ll definitely check that out. Thanks for the input!