3 ms·
You can definitely use one Lambda function to serve all of the endpoints that the author mentions. You need a wildcard route in API gateway, and can easily use
by catchmeifyoucan 6y ago
You can definitely use one Lambda function to serve all of the endpoints that the author mentions. You need a wildcard route in API gateway, and can easily use koa-serverless or express-serverless to get the route information when any request is received. That way you only need one function for your APIs. Even with a regular api not on lambda, you’ll still have to be aware of db connections.