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

Service trait evolution #361

Open
ximon18 opened this issue Jul 23, 2024 · 0 comments
Open

Service trait evolution #361

ximon18 opened this issue Jul 23, 2024 · 0 comments

Comments

@ximon18
Copy link
Member

ximon18 commented Jul 23, 2024

With the original Service trait single responses and streams were supported by a sync impl returning a custom Transaction type, with middleware implemented via MiddlewareProcessor, MiddlewareBuilder and MiddlewareChain type.s

PR #307 updates the Service trait to be async and return a Future<Output = Stream> with middleware implemented as a layered service approach ala Hyper.

But we know this is not where we want to go with this. We want to simplify the Service trait as much as we can. This issue captures the current state and plans going forwards.

Additional notes:

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

1 participant