Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

Python Asynchronous / Streaming RPC #736

Open
lmapii opened this issue Sep 2, 2018 · 1 comment
Open

Python Asynchronous / Streaming RPC #736

lmapii opened this issue Sep 2, 2018 · 1 comment

Comments

@lmapii
Copy link

lmapii commented Sep 2, 2018

I was setting up gRPC for an electron app which is supposed to communicate with a python application. After a bit of struggling to get the basic communication up and working I've ran into some limitations.

  • For a python gRPC server all the example create an iterator for streaming responses - is there any other way to use that? I'm using threads / workers to actually handle the request and provide the individual data responses, which is not possible using an iterator.

  • Is there some API to handle cancellations by the client? E.g., the client starts a request, python server starts streaming; client cancels the transfer (in nodejs, simply by invoking call.cancel()). For my application as a server I'd like to know if a client cancelled the request (explicitly). I've found the interceptor in the examples but it is marked as experimental and it is pretty heavy stuff...

Any help appreciated :)

@carl-mastrangelo
Copy link

Hi,

I don't think I can answer this question, and it's unlikely to be seen by anyone who can. You might try asking on StackOverflow, or our official forum: https://groups.google.com/forum/#!forum/grpc-io

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

No branches or pull requests

2 participants