Very good article! I thoroughly enjoyed the read. You guys have done a great job :)
I guess one of the problems with this approach as you have detailed is the fact that you have to write this complex code to decode the context. Moreover, you can be “hit” on any random endpoint and lose out on automatic documentation generation via Swagger.
Would consider rewriting this part and maybe using something like Terraform/Ansible/Serverless framework to automatically deploy Lambdas and configure the API Gateway endpoints?
Also would love to have more details about how much money you are likely to save with Lambda.
Thanks for sharing your journey with the community!