3 ms·
You can use one lambda to handle multiple API gateway requests. Route to ANY. Then have a bridge that connects to your favorite language router. We do this all
by virmundi 6y ago
You can use one lambda to handle multiple API gateway requests. Route to ANY. Then have a bridge that connects to your favorite language router. We do this all the time with NestJS. The down side is you burn some cash when someone calls a 404 resource since your NestJS has to say that it’s missing and that requires at least 100ms of lambda time. You could probably get around this by generating a route maker off the NestJS controller files.