Skip to content

P3 service chaining#3591

Draft
lann wants to merge 2 commits into
mainfrom
p3-service-chaining
Draft

P3 service chaining#3591
lann wants to merge 2 commits into
mainfrom
p3-service-chaining

Conversation

@lann

@lann lann commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Fixes #3586

@lann lann requested review from Copilot, dicej and itowlson and removed request for itowlson June 25, 2026 20:02
@lann lann requested a review from itowlson June 25, 2026 20:03

This comment was marked as outdated.

This comment was marked as low quality.

@itowlson itowlson left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! It would be great to add a test - Rajat had one in his branch I think, or based on the existing service chaining tests. (But we can retrofit that if you need to get back to other priorities.)

@lann lann force-pushed the p3-service-chaining branch from bd0c76b to 1ed6d2f Compare June 25, 2026 20:12
Comment on lines -691 to -700
/// An HTTP executor.
pub(crate) trait HttpExecutor {
fn execute<F: RuntimeFactors>(
&self,
instance_builder: TriggerInstanceBuilder<F>,
route_match: &RouteMatch<'_, '_>,
req: Request<Body>,
client_addr: SocketAddr,
) -> impl Future<Output = anyhow::Result<Response<Body>>>;
}

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drive-by refactor removing this useless trait but it was difficult to extract from the rest of the work.

@lann

lann commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator Author

This one is still a draft because I haven't tested it at all.

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

Successfully merging this pull request may close these issues.

Service chaining (*.spin.internal) doesn't work with WASI 0.3 handler

3 participants