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

Document that the gRPCid can be passed out of the async event structure as a way to handle concurrent calls to the same entrypoint #299

Open
rtzoeller opened this issue Aug 22, 2023 · 0 comments
Labels
scope: documentation Improvements or additions to documentation

Comments

@rtzoeller
Copy link

rtzoeller commented Aug 22, 2023

I had asked about handling concurrent calls to entrypoints with long-running stream responses. The current grpc-labview architecture and examples push you to handle these directly in the event structure, which forces calls to the same entrypoint to be serialized -- breaking concurrent stream responses.

Fortunately everything seems to just work if you handle the messages outside of the event structure, e.g. in an asynchronous VI call launched from the event structure, or in a separate loop receiving the gRPCid in a queue.

In response to my original question I received this, which suggested filing an issue for the documentation gap.

You can dispatch the handling of the gRPC method anyway you want including async VIs. You do not have to completely handle the call in the event case itself. The event ID is valid and can be read from or written to until the method is completed or cancelled.

If the client cancels the call reading or writing will return an error.

If you read or write to the event after the method is completed or cancelled on the server, you will also get an error.

I don't know if this is documented anywhere. An issue should be filed for this.

AB#2493886

@Rohith-Grandhi Rohith-Grandhi added the scope: documentation Improvements or additions to documentation label Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants