Hacker News new | ask | show | jobs
by steveklabnik 2751 days ago
I 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.

1 comments

Ah okay.

I wasn't sure if bare-bones Rust+Lamba-Rust-Runtime was already enough.

Speaking 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...
If you're not trying to run a website on lambda, sure that's enough and there's no need for rocket.