[grpc-io] Some questions after seeing the Grpc concepts...

2018-03-28 Thread coding
I've seen some GRPC presentations on Youtube and had some questions... First as a background, https://www.youtube.com/watch?v=RoXT_Rkg8LA shows probably my overall understanding of the overall stack. I'm interested in migrating a project I'm involved in that is currently built on top of

[grpc-io] What is the behaviour of grpc::ServerContext::IsCancelled()

2018-03-28 Thread Okke Hendriks
Hello, I am using the sync grpc C++ API v1.10.0. Could someone explain to me what the exact behaviour of IsCancelled() is? Does it evaluate to true if and only if the client sends a TryCancel()

[grpc-io] Re: gRPC Java - how to efficiently work with metadata?

2018-03-28 Thread 'Carl Mastrangelo' via grpc.io
Responses inline: On Friday, March 16, 2018 at 5:13:07 PM UTC-7, slili...@onemarketnetwork.com wrote: > > I have started working with gRPC fairly recently and really like a lot of > aspects of it - thanks to all who contributed to it! But a couple of design > decisions don't make sense to me

[grpc-io] Re: [Help] use self-signed cert on Android

2018-03-28 Thread 'Carl Mastrangelo' via grpc.io
Are you sure negotiation completed from the Android client POV? Since the android code uses OkHTTP framing and a thread per connection, you should be able to see where it is hung up by getting a stack trace. On Monday, March 19, 2018 at 3:53:16 AM UTC-7, yz wrote: > > I am trying to make gRPC

Re: [grpc-io] [GSoC] Assistance with gRPC Python Ideas

2018-03-28 Thread Sword Chen
Hi, I have written a basic proposal based on my understanding of the 'support static type-checking of gRPC Python' project. It is very grateful if you can take a look and give some

[grpc-io] Re: CallCredentials on "Insecure" Channels (in C-based implementatons)

2018-03-28 Thread colin . morelli
Sorry for the quick double post here, but just wanted to clarify point #3 above. I understand JWTs are still private in the sense that you could beat the caller to the server with the same credentials it is trying to use (or rely on the fact that the service isn't using the JTI as a nonce). In

[grpc-io] Re: grpc python streaming response order

2018-03-28 Thread rvshah825
Sorry wanted to clarify by the way, when I run `client.py` against server, I get an rpc error raised on the *first* `next` call, rather then on the 2nd one as I'd expect. ``` (grpc110) vagrant@vagrant:/vagrant$ python client.py Traceback (most recent call last): File "client.py", line 34, in

[grpc-io] Re: Problem with the design of the async grpc model

2018-03-28 Thread Arpit Baldeva
Check out the example I added at https://groups.google.com/forum/#!topic/grpc-io/T9u2TejYVTc As for 300-400 rpcs, you can write a custom code generator that plugs in to ProtoC (much like grpc_cpp_plugin) and have it generate additional code that you may need (like auto "requesting" your

[grpc-io] Re: grpc python streaming response order

2018-03-28 Thread 'Srini Polavarapu' via grpc.io
If your goal is to notify an invalid argument why not use context.set_code(grpc.StatusCode.INVALID_ARGUMENT) instead of abort. On Friday, March 23, 2018 at 4:48:33 AM UTC-7, rvsh...@gmail.com wrote: > > I was trying out python server streaming, and it is unclear to me if there > is a guarantee

[grpc-io] Re: How to configure nginx to serve as a load balancer for gRPC?

2018-03-28 Thread mschonwetter
Announced 17-Mar-2018: native support for gRPC traffic in NGINX 1.13.10 : https://www.nginx.com/blog/nginx-1-13-10-grpc/ On Tuesday, August 29, 2017 at 12:54:08 PM UTC-5, alexm...@gmail.com wrote: > > > I understand that the question is more appropriate for nginx group, but > still... Does

Re: [grpc-io] Re: [C++] SSL certificate reload api

2018-03-28 Thread Arpit Baldeva
Hi Justin, Is there a tracking issue for this that I can follow? Thanks. On Thursday, March 8, 2018 at 12:54:14 PM UTC-8, Justin Burke wrote: > > Hi Arpit, > > Thanks for bringing this to our attention. A C++ API update wasn't in > scope for the initial set of work. I'm working on finding

[grpc-io] Re: gRPC calls from a Web App (in browser)?

2018-03-28 Thread 'Srini Polavarapu' via grpc.io
Yes. See this https://github.com/grpc/grpc-web On Saturday, March 24, 2018 at 11:20:08 AM UTC-7, amer...@gmail.com wrote: > > Hi. > > Is there any way to call a gRPC back-end service from a web browser > application (say using Dart or JavaScript)? > > Thanks. > -- You received this message

[grpc-io] Re: Trouble cross-compilling gRPC for an older platform

2018-03-28 Thread embeddedguy1138
I was able to move past this error by adding $(TARGET_MAKE_ENV) before $(MAKE) in the buildroot grpc.mk file. The next error I encountered regarding ‘EPOLL_CLOEXEC’ undeclared has been documented and resolved here . Presently, I am stumped on the

[grpc-io] Re: Problem with the design of the async grpc model

2018-03-28 Thread Arpit Baldeva
You say micro-services and then say your server will have 300-400 rpcs? Are they part of the same service or many independent services and you are just trying to get a common framework together? I had a similar problem in my application which is/was largely a monolith and I had to add gRPC