Skip to content
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

Streaming support for WASI HTTP incoming handler invocation #1185

Open
vigoo opened this issue Dec 13, 2024 · 0 comments
Open

Streaming support for WASI HTTP incoming handler invocation #1185

vigoo opened this issue Dec 13, 2024 · 0 comments
Assignees
Milestone

Comments

@vigoo
Copy link
Contributor

vigoo commented Dec 13, 2024

After #1184 is done, the next step is to support streaming request bodies and response bodies.

This will require custom implementations of the WASI HostInputStream and HostOutputStream interfaces (there are already existing examples for doing that) that are somehow mapping to the open gRPC stream.

Challenges:

  • Implement the WASI stream - gRPC stream mapping
  • How to inject these custom stream implementations into the WASI HTTP incoming request / outgoing response host resources (may require changes in wasmtime's wasi-http implementation in our fork)
  • Durability - the streaming support must not break durability guarantees, a worker that was interrupted / replayed in the middle of an incoming request handler must work as expected.

Make sure that as part of this ticket there are worker executor tests using streaming AND simualting worker restarts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants