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

Suggestion: add an optional id field copied from input to output for async support #30

Open
gyohng opened this issue Sep 29, 2024 · 0 comments

Comments

@gyohng
Copy link

gyohng commented Sep 29, 2024

I suggest a method call could include an optional id field. No processing for it is required, if present - it's simply to be copied to the output.

This would allow implementations to potentially run via async or in several threads to handle out of order processing while using a single file handle / single connection. The client, in that case, can wait for a specific return value that matches the input id without depending on the pipeline order and stalling the process.

The suggestion is backwards compatible. The current server implementation can simply copy the id from input to output without actually doing any async stuff.

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