4 ms·
Does it make any sense to use this with FaaS?
by k__ 8y ago
Does it make any sense to use this with FaaS?
- mastox 8y agoI would assume so. At a high level, not much different than node with express (Edit: for FaaS).
- steveklabnik 8y agoLambda just announced native support for Rust last week.
- k__ 8y agoSure thing, but does it make any sense to use Rocket on it?
- steveklabnik 8y agoRocket specifically? Lots of people like it. Rust generally? Stuff like https://andre.arko.net/2018/10/25/parsing-logs-230x-faster-with-rust/ https://andre.arko.net/2018/10/25/parsing-logs-230x-faster-w... is one success story we’ve already seen.
- dominotw 8y agogp is asking abt rocket inside lambda.
- steveklabnik 8y agoI don't personally think that there's anything inherently specific to Rocket that makes it better for lambdas than any other Rust web framework. That's just my opinion, of course.
- k__ 8y agoAh okay. I wasn't sure if bare-bones Rust+Lamba-Rust-Runtime was already enough.
- maccam94 8y agoIf you're not trying to run a website on lambda, sure that's enough and there's no need for rocket.
- thramp 8y agoSpeaking as the co-author AWS's Rust Lambda Runtime: there's no fundamental impediment for us supporting Rocket (or any other web framework), but I suspect there'd need to be changes made in Rocket to support how Lambda expects input. Namely, Lambda functions don't see raw HTTP requests, but instead, fully parsed JSON. This blog post shows how Lambda expects data to be formatted: https://aws.amazon.com/blogs/networking-and-content-delivery/lambda-functions-as-targets-for-application-load-balancers/ https://aws.amazon.com/blogs/networking-and-content-delivery...