theam / aws-lambda-haskell-runtime

⚡Haskell runtime for AWS Lambda
https://theam.github.io/aws-lambda-haskell-runtime/
Other
269 stars 48 forks source link

Native support for Application Load Balancer #91

Open shmish111 opened 3 years ago

shmish111 commented 3 years ago

AWS ALB has Lambda integration now however the events it sends are slightly different to the APIGW Lambda Proxy events and UseWithAPIGateway can't cope with these differences it seems. It would be great to have either UseWithALB or even better something that allowed use with both. I couldn't find any official documentation with explicit differences however this blog post outlines them https://serverless-training.com/articles/api-gateway-vs-application-load-balancer-technical-details/#feature-differences-between-application-load-balancer-and-api-gateway

NickSeagull commented 3 years ago

Thanks for reporting! It would be sure awesome to keep up with the new features, PR's are very welcome!

shmish111 commented 3 years ago

Lol, I appreciate your sentiment. I may get the chance to work on it, it depends on how desperate I get for working with ALB.

BTW, awesome job on this library, when used together with https://hackage.haskell.org/package/aws-lambda-haskell-runtime-wai it makes a really awesome setup where you can have a local dev server running warp and lambdas in production. If only lambdas had much bigger limits I could do so much more with this!

dnikolovv commented 3 years ago

Just notifying you guys that I'm working on that. Should be shipped with v4.0.0 that has no TH.

Update: This is done in https://github.com/theam/aws-lambda-haskell-runtime/pull/97