tailcall icon indicating copy to clipboard operation
tailcall copied to clipboard

Support serverless via AWS Lambda

Open tusharmath opened this issue 1 year ago β€’ 5 comments
trafficstars

AWS has support to run Rust binaries on serverless.

Technical Requirements

  • Reuse code as much as possible.
  • Create a separate binary for AWS serverless
  • Update CI jobs to create AWS Lambda binaries.

Additional Links https://github.com/aws-samples/serverless-rust-demo/

tusharmath avatar Jan 02 '24 07:01 tusharmath

/bounty 280$

tusharmath avatar Jan 02 '24 07:01 tusharmath

πŸ’Ž $280 bounty created by tailcallhq πŸ™‹ If you'd like to work on this issue, comment below to get assigned πŸ‘‰ To claim this bounty, submit a pull request that includes the text /claim #874 somewhere in its body

πŸ“ Before proceeding, please make sure you can receive payouts in your country. πŸ’΅ Payment arrives in your account 2-5 days after the bounty is rewarded. πŸ’― You keep 100% of the bounty award. πŸ‘ If you go above and beyond by cleaning up or enhancing aspects beyond the scope of the PR, a tip may be awarded as a token of appreciation. πŸ™ Thank you for contributing to tailcallhq/tailcall!. πŸ™‹β€β™‚οΈ Join our discord channel if you need help.

πŸ‘‰ Add a bounty β€’ Share on socials

algora-pbc[bot] avatar Jan 02 '24 07:01 algora-pbc[bot]

@tusharmath I have some experience with AWS and I'm a AWS Certified Cloud Practitioner. Happy to take up this!

ezhil56x avatar Jan 02 '24 08:01 ezhil56x

Great!

tusharmath avatar Jan 02 '24 08:01 tusharmath

@tusharmath I’m on standy πŸ™ƒ just in case.

ayewo avatar Jan 02 '24 09:01 ayewo

I currently work as a backend developer intern at a company which uses AWS lambda in their CI/CD, would be happy to work on this project if the issue remains 😊

atharv4git avatar Jan 09 '24 17:01 atharv4git

@ayewo I couldn't make up. Feel free to take up this πŸ€—

Found some resources that would help https://docs.aws.amazon.com/lambda/latest/dg/lambda-rust.html https://www.cargo-lambda.info/

ezhil56x avatar Jan 14 '24 07:01 ezhil56x

Thanks for the heads up @ezhil56x πŸ‘.

ayewo avatar Jan 14 '24 08:01 ayewo

@tusharmath

Specifically, what commands from the tailcall binary do you want to expose using AWS Lambda?

ayewo avatar Jan 16 '24 14:01 ayewo

@tusharmath okay thanks for the information

atharv4git avatar Jan 17 '24 07:01 atharv4git

Specifically, what commands from the tailcall binary do you want to expose using AWS Lambda?

@tusharmath would appreciate a response here.

ayewo avatar Jan 20 '24 21:01 ayewo

On AWS we don't care about the commands. Tailcall should load a configuration over HTTP and over the AWS serverless handle, it should be able to serve GraphQL requests.

tusharmath avatar Jan 23 '24 03:01 tusharmath

@tusharmath an AWS Lambda function doesn’t load configuration over HTTP, it can only handle inbound HTTP requests.

Any relevant configuration has to be baked into the runtimeβ€”the machine image used to start up the Lambda function.

So it sounds like you want to Tailcall to act as if it were a Lambda function that can handle arbitrary GraphQL calls?

I’m afraid Lambda functions weren’t made for that since JSON is what is used for most payloads.

ayewo avatar Jan 23 '24 07:01 ayewo

πŸ’‘ @mogery submitted a pull request that claims the bounty. You can visit your bounty board to reward.

algora-pbc[bot] avatar Jan 26 '24 14:01 algora-pbc[bot]

πŸŽ‰πŸŽˆ @mogery has been awarded $280! 🎈🎊

algora-pbc[bot] avatar Feb 08 '24 21:02 algora-pbc[bot]