-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question about Rust http::Request and HTTP trigger roadmap #2200
Comments
This is a great question. As a hosting framework, Spin should ideally not be too prescriptive about how to do things or access things: users must have access to the bottom level ( The long-game hope/bet is that WASI Preview 2 (which is what defines Spin's base HTTP types) will become sufficiently widely accepted that the higher-level frameworks and libraries you describe will just transparently work with the WASI So this ends up being kind of an evasive answer. We're certainly open to higher-level APIs in the Spin SDK, and delighted to take PRs that improve usability. Things that are strongly opinionated should typically be outside the SDK, layered above it in their own packages, similar to I hope that makes sense, and I know it's a long answer! Always happy to discuss further and to see how we can improve for our users! |
Thanks for your input, this adds some context that I was missing. I'm currently trying to get my head into the WASI space and understand what's possible or practical. I'll check out |
First of all, sorry if this information is provided by the documentation. I haven't found an answer to my question and I haven't seen a roadmap.
I'd like to know if future versions of Spin are expected to focus on HTTP trigger functionality and, for example, provide a higher-level API in the Rust
spin_sdk::http::Request
struct. According to the docs and this comment query string parameters are provided as a&str
, which means I'm responsible for parsing logic in my implementation. This is manageable, and I'm happy to pay this price for being able to use Spin, but this kind of processing is obviously a good opportunity for the framework to abstract away some complexity that's likely required by most implementations.I haven't been able to find another framework that can support HTTP APIs and run in WebAssembly, so I'm excited about Spin, but I'd love to have a bit more information about what the future holds for the HTTP trigger before committing the time to really get to know it. With the current API - which is lower-level than many of the HTTP API alternatives that don't compile to WebAssembly - it's a tough decision how much developer resource can be justified by the anticipated performance and scaling benefits.
I'm aware that Spin is an Open Source project, and that I can potentially help to drive the product in this direction with PRs. Here I'm hoping to better understand the current roadmap to see if this an area in which I'd like to focus my availability.
The text was updated successfully, but these errors were encountered: