[grpc-io] Re: Stream message delivery guarantees

2023-10-20 Thread 'sanjay...@google.com' via grpc.io
On Friday, October 20, 2023 at 8:58:22 AM UTC-7 Edvard Fagerholm wrote: .. However, silently dropping anything on the floor would be problematic. That won't happen. Check https://grpc.io/docs/what-is-grpc/core-concepts/#service-definition "gRPC guarantees message ordering within an individual

[grpc-io] Re: Managing very high numbers of concurrent gRPC streams in Java

2023-10-06 Thread 'sanjay...@google.com' via grpc.io
grpc Java benchmarks at https://github.com/grpc/grpc-java/blob/master/benchmarks/README.md has some useful pointers (and example code) that you may want to look at. On Friday, October 6, 2023 at 7:35:00 AM UTC-7 Edvard Fagerholm wrote: > Hi, > > I need to be able to create tens of thousands of

[grpc-io] Re: building grpc C++ on AIX

2023-10-03 Thread 'sanjay...@google.com' via grpc.io
Hi Eddie Can you contribute your changes to the repo? Looks like they are all protected by AIX macros so they seem safe. On Tuesday, October 3, 2023 at 10:02:29 AM UTC-7 Eddie Mon wrote: > This may be a little late in reply, but I did manage to build gRPC v1.46.3 > on AIX 7.2 for our project.

[grpc-io] Re: OutOfMemofy - Java grpc bi-directional streamming

2023-09-18 Thread 'sanjay...@google.com' via grpc.io
Can you include logs, stack-traces etc before the OOM occurs? On Monday, September 18, 2023 at 3:38:29 AM UTC-7 Quyen Pham Ngoc wrote: > Dear all, > > I get OutOfMemory error when using grpc multi-directional streamming. When > checking the heap dump, I see many instances of > io.netty.channe

[grpc-io] Re: bidirectional gRPC server with maxConnectionIdle

2023-08-31 Thread 'sanjay...@google.com' via grpc.io
Hi, Are you thinking of the case where the client has died or otherwise has lost connectivity? Note that a broken TCP connection will be detected on the server side and will do the necessary clean up. If that's not your case please describe what your use-case is. On Thursday, August 31, 2023 a

[grpc-io] Re: bidirectional gRPC server with maxConnectionIdle

2023-08-30 Thread 'sanjay...@google.com' via grpc.io
Yes, your understanding is correct. If a connection has an active bi-di call and even if there is no activity in that call gRPC will keep the connection active using PING frames. It is alluded to in this spec .

Re: [grpc-io] Re: After the channel is created, it takes 1000+ms to transition from IDEL state to CONNECTING state.How can i reduce the time required to change state?

2023-08-24 Thread 'sanjay...@google.com' via grpc.io
Instead of modifying and using the jre/lib logging.properties file can you try using one for your application alone as described in my previous message (use Java property java.util.logging.config.file and so on)? On Wednesday, August 23, 2023 at 7:49:39 PM UTC-7 邹会江 wrote: > 1. I modified the

[grpc-io] Re: Access to ByteBuffer before Deserialize

2023-08-24 Thread 'sanjay...@google.com' via grpc.io
Would like to confirm that you are asking about gRPC Java (inferring from your mention of ByteBuffer). On Thursday, August 24, 2023 at 10:53:48 AM UTC-7 Abhishek Kabra wrote: > Hi, > There is issue in protobuf where nested messages (recursion) if goes > beyond 100 depth, DeSerialization fails.

[grpc-io] Re: missing class after compiling proto buff

2023-08-16 Thread 'sanjay...@google.com' via grpc.io
Please follow the instructions at https://github.com/grpc/grpc-java/blob/master/COMPILING.md#how-to-build-code-generation-plugin to make sure you get the code generation plugin On Wednesday, July 26, 2023 at 1:44:17 PM UTC-7 Hüsnü Ayaz wrote: > > I check there. Unfortunately, there is no clas

[grpc-io] Re: Received message larger than max error

2023-08-16 Thread 'sanjay...@google.com' via grpc.io
I think your question should be directed to the team of audio server software you are using rather than gRPC. If you think this is really a gRPC issue please provide more details. On Thursday, August 10, 2023 at 3:09:26 PM UTC-7 Chandra Shekhar wrote: > I have fixed the issue by setting the grp

[grpc-io] Re: missing class after compiling proto buff

2023-07-26 Thread 'sanjay...@google.com' via grpc.io
Did you check HelloServiceOuterClass.java? HelloServiceImplBase must be present as an inner class there. On Wednesday, July 26, 2023 at 12:55:53 PM UTC-7 Hüsnü Ayaz wrote: > hi everyone. I'm a student. I'm learning protobuff. But I have some > problems. I have created a basic proto file. ther

[grpc-io] Re: Java: Geeting error when trying to connect the gRPC service on dev environment .

2023-07-13 Thread 'sanjay...@google.com' via grpc.io
Do you have a stack trace? Also which version of grpc-java are you using? Hopefully all your jars are the same version? On Thursday, July 13, 2023 at 12:33:32 AM UTC-7 Jigar Tailor wrote: > Hello everyone, > please assist me with the below problem.. > I am getting the below error when trying to

[grpc-io] Re: Simplest Java code for custom dynamic headers?

2023-06-21 Thread 'sanjay...@google.com' via grpc.io
No, create the interceptor and stub just once and save it somewhere. You also will have to save the Metadata instance passed to MetadataUtils.newAttachHeadersInterceptor and keep that instan

[grpc-io] Re: Simplest Java code for custom dynamic headers?

2023-06-21 Thread 'sanjay...@google.com' via grpc.io
> if (isAuthorized(req)) { You probably meant if (!isAuthorized(req)) You can use MetadataUtils.newAttachHeadersInterceptor to get an interceptor to add your "X-s

[grpc-io] Re: Some gRPC releases are missing in Maven Central

2023-06-18 Thread 'sanjay...@google.com' via grpc.io
Your links to v1.52.2 and v1.54.2 are for the releases of grpc core (C/C++). For grpc-java (which is what you will find on Maven central) you can find the releases at https://github.com/grpc/

[grpc-io] Re: gRPC in spring boot

2023-06-06 Thread 'sanjay...@google.com' via grpc.io
This seems to be the trigger: > 2023-06-06T10:47:14.132+03:00 INFO 105277 --- [ionShutdownHook] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default' and seems unrelated to the gRPC library. Any idea why this shutdown hook was called? On

[grpc-io] Re: gRPC java: Provide ScheduledExecutorService setter in NettyChannelBuilder

2023-06-01 Thread 'sanjay...@google.com' via grpc.io
> But I would prefer to use a simple setter added to `NettyChannelBuilder` instead. If I understand correctly the change is non-trivial: the 2 eventLoopGroups will have to be used for their respective roles (with appropriate default behavior for backward compatibility etc). I suggest opening a

[grpc-io] Re: gRPC java: Provide ScheduledExecutorService setter in NettyChannelBuilder

2023-06-01 Thread 'sanjay...@google.com' via grpc.io
One solution I can think of is for you to pass your own implementation of EventLoopGroup where eventLoopGroup.schedule() does not call eventLoopGroup.next() but submits it to a subset of EventLoop's that are specifically reserved for submitted/scheduled tasks. NettyClientTransport calls eventLo

[grpc-io] Re: gRPC java: Provide ScheduledExecutorService setter in NettyChannelBuilder

2023-06-01 Thread 'sanjay...@google.com' via grpc.io
Comments inline below: On Wednesday, May 31, 2023 at 6:24:56 PM UTC-7 dan...@gmail.com wrote: Hello, I have observed that the ScheduledExecutorService utilized for setting up deadlines and exiting idle mode is obtained by calling NettyClientTransport.getScheduledExecutorService, I think you

[grpc-io] Re: How grpc cancell a thread/running function in server side.

2023-05-26 Thread 'sanjay...@google.com' via grpc.io
You can register an onCancel handler : check this one out https://grpc.github.io/grpc-java/javadoc/io/grpc/stub/ServerCallStreamObserver.html#setOnCancelHandler-java.lang.Runnable- and restructure your code a bit so you can still achieve the same result. On Thursday, May 25, 2023 at 10:38:22

Re: [grpc-io] Re: Proxyless gRPC services in Istio mesh

2023-05-26 Thread 'sanjay...@google.com' via grpc.io
trouble ... ... When I configure Istio to enforce STRICT mTLS..." I got >> the impression that you got everything working in plaintext (without >> enabling mTLS) and then you enabled mTLS via Istio which is when you saw >> connection problems. I was just referring to the same - y

Re: [grpc-io] Re: Proxyless gRPC services in Istio mesh

2023-05-24 Thread 'sanjay...@google.com' via grpc.io
On Wednesday, May 24, 2023 at 8:41:20 AM UTC-7 Wesley Hartford wrote: Thanks for getting back to me, Sanjay. As far as I can tell, my client and server are both using the appropriate Xds credentials: The client code is at https://github.com/wfhartford/kotlin-grpc-xds/blob/18598a7e9210be7265bc753

[grpc-io] Re: Proxyless gRPC services in Istio mesh

2023-05-23 Thread 'sanjay...@google.com' via grpc.io
On Wednesday, May 17, 2023 at 11:07:43 AM UTC-7 Wesley Hartford wrote: ... What doesn't seem right: - A server interceptor reports that ServerCall.getSecurityLevel() returns NONE, Seems right when you are using InsecureChannelCredentials i.e. plaintext. - When I configure Istio

[grpc-io] Re: NettyServer Builder With maxConcurrentCallsPerConnection working behaviour

2023-05-19 Thread 'sanjay...@google.com' via grpc.io
What exactly do you mean by "client application overshooting the request" ? On Sunday, May 14, 2023 at 7:55:59 AM UTC-7 Bhuvi Viji wrote: > Hi, > > My client application overshooting the request so it gets service > unavailable error at times and the same request gets proper response during >

[grpc-io] Re: Connection leak on GRPC Java client

2023-04-28 Thread 'sanjay...@google.com' via grpc.io
Take a look at https://github.com/grpc/grpc/blob/master/doc/connectivity-semantics-and-api.md - it says "...channels that receive a GOAWAY when there are no active or pending RPCs should also switch to IDLE..." Also according to https://github.com/grpc/grpc-java/blob/master/api/src/main/java

[grpc-io] Re: How to download grpc jar file?

2023-04-25 Thread 'sanjay...@google.com' via grpc.io
There are multiple grpc jar files - which one do you need? You can go to https://central.sonatype.com/namespace/io.grpc and look up the ones you want and download from there. On Sunday, April 23, 2023 at 6:49:59 PM UTC+5:30 trendspike stock wrote: > Hi All, > > I am writing Java application usi

[grpc-io] Re: Multiple xDS servers

2023-04-24 Thread 'sanjay...@google.com' via grpc.io
Take a look at https://github.com/grpc/proposal/blob/master/A47-xds-federation.md which describes how multiple xds servers are specified in the bootstrap file and the federation use-case. Which gRPC language are you using? On Monday, April 17, 2023 at 2:26:12 PM UTC+5:30 Gabriel Bordovský wrote

[grpc-io] Re: Exposing gRPC as external API

2023-04-07 Thread 'sanjay...@google.com' via grpc.io
Google Cloud APIs are also exposed as gRPC - take a look at https://cloud.google.com/apis/docs/overview#supporting_http_and_grpc There is an API design guide at https://cloud.google.com/apis/design which also covers gRPC APIs. Hope that helps. On Friday, April 7, 2023 at 1:32:20 AM UTC-7 Chris

[grpc-io] Re: Support for sharding in gRPC

2023-04-02 Thread 'sanjay...@google.com' via grpc.io
Hi Antoine, This is an interesting use-case and when I started thinking about possible solutions (including the ones you have suggested) I noticed some structural similarity with something we have been working on - and I will come to that shortly. But first some clarifications: - you said "ma

[grpc-io] A60: xDS-Based Stateful Session Affinity for Weighted Clusters

2023-03-27 Thread 'sanjay...@google.com' via grpc.io
This is the discussion thread for A60: xDS-Based Stateful Session Affinity for Weighted Clusters https://github.com/grpc/proposal/pull/348 Please share your comments. -- You received this message because you are subscribed to the Google Groups "grp

[grpc-io] Re: gRPC Netty exception when using proxyless xDS based example with TLS

2023-03-27 Thread 'sanjay...@google.com' via grpc.io
One more ping for a reproducible test-case... On Monday, March 20, 2023 at 8:47:03 AM UTC-7 sanjay...@google.com wrote: > Pinging again for a reproducible test-case... > > On Monday, March 13, 2023 at 8:36:01 PM UTC-7 Sanjay Pujare wrote: > >> - would you be able to share your reproducible test-c

[grpc-io] Re: gRPC Netty exception when using proxyless xDS based example with TLS

2023-03-20 Thread 'sanjay...@google.com' via grpc.io
Pinging again for a reproducible test-case... On Monday, March 13, 2023 at 8:36:01 PM UTC-7 Sanjay Pujare wrote: > - would you be able to share your reproducible test-case? > > - could you share more of the log? I would like to see why there are > multiple calls to updateSslContext > > I suspect

[grpc-io] Re: Add support for cross-compiling for s390x platform #9455

2023-03-17 Thread 'sanjay...@google.com' via grpc.io
Assuming you are talking about https://github.com/grpc/grpc-java/pull/9455 it is already being looked at as you can see the comments in the PR. On Wednesday, March 15, 2023 at 11:04:30 PM UTC-7 Dilip Bhagavan wrote: > This PR adds the s390x packages to the maven artifacts published for this > c

[grpc-io] Re: GRPC Connection Issue

2023-03-17 Thread 'sanjay...@google.com' via grpc.io
Use idleTimeout to not timeout an idle channel. The default is 30 minutes so are you sure that it is "forcibly disconnected after 30 seconds" ? You can also look at kee

[grpc-io] Re: How does gRPC maintain sessions securely?

2023-03-17 Thread 'sanjay...@google.com' via grpc.io
Comments inline below: On Friday, March 17, 2023 at 12:57:31 PM UTC-7 Eric Robins wrote: Ok, I have a simple POC of a bidrectional streaming RPC up in Java. The client instantiates the non-blocking message stub a single time and the request and response StreamObservers are re-used throughout t

[grpc-io] Re: How does gRPC maintain sessions securely?

2023-03-02 Thread 'sanjay...@google.com' via grpc.io
On Thursday, March 2, 2023 at 9:57:15 AM UTC-8 Eric Robins wrote: Thanks - this discussion is helpful. When I mentioned interceptors I was looking specifically at Java, which is likely to be the language chosen. I am however looking at this from a security perspective as an engineer attempt

[grpc-io] Re: How does gRPC maintain sessions securely?

2023-03-02 Thread 'sanjay...@google.com' via grpc.io
Need to be more precise than "when a channel is established, that continued conversation could be trusted." There is this notion called client authentication where a client's identity is established and authenticated. Client identity can be provided through a mTLS certificate or a header in an

[grpc-io] Re: How does gRPC maintain sessions securely?

2023-03-01 Thread 'sanjay...@google.com' via grpc.io
Please take a look at https://github.com/grpc/proposal/blob/master/A43-grpc-authorization-api.md and see if that addresses your questions. On Wednesday, March 1, 2023 at 2:27:45 PM UTC-8 Eric Robins wrote: > Forgive the question if it's already been asked. I've been digging > through document

[grpc-io] Re: Can't decode compressed gRPC message as compression not configured

2023-01-27 Thread 'sanjay...@google.com' via grpc.io
On Friday, January 27, 2023 at 2:06:28 AM UTC-8 chris...@gmail.com wrote: ... It might not be the reason though (the error was on the server-side), since the API says: *Enables full-stream decompression of inbound streams. This will cause the channel's outboundheaders to advertise support for

[grpc-io] Re: Stuck due to UNAVAILABLE: Failed ALPN negotiation: Unable to find compatible protocol

2023-01-26 Thread 'sanjay...@google.com' via grpc.io
Was this working before and you got this regression after upgrading either Java or grpc-java? On Thursday, January 19, 2023 at 2:11:08 AM UTC-8 Anil Kumar wrote: > Hi There, Could Someone help please. PubSub and BQ are working from same > environment but only cloud translation while using clie

[grpc-io] Re: Invalid argument error from Java client connecting to ipv6 server

2023-01-26 Thread 'sanjay...@google.com' via grpc.io
Did you use ManagedChannelBuilder.forTarget() ? According to the doc , something like "[2001:db8:85a3:8d3:1319:8a2e:370:7348]:443" should have worked - which is what you are using. Unless

[grpc-io] Re: Can't decode compressed gRPC message as compression not configured

2023-01-26 Thread 'sanjay...@google.com' via grpc.io
> There were plenty of messages processed for few days, and all of a sudden this exception breaks the connection. Is it possible some new clients (esp clients using another gRPC language) are now connecting which is why you are seeing this error? > What does it mean, and how can be solved? Ca

[grpc-io] Re: Manual control flow

2022-12-28 Thread 'sanjay...@google.com' via grpc.io
On Tuesday, December 27, 2022 at 3:16:03 PM UTC-8 liuya...@gmail.com wrote: > Hi, > > We want to implement some manual control flow that are aware of memory > size.. > > From this post, it seems the default client and server buffer size are > pretty small. > https://github.com/grpc/grpc-java/is

[grpc-io] Re: Python: server-side abort() always throws exception on calling client-side?

2022-12-28 Thread 'sanjay...@google.com' via grpc.io
Check this out https://grpc.github.io/grpc/python/grpc.html#grpc-exceptions "Raised by the gRPC library to indicate non-OK-status RPC termination." (although it doesn't reference InactiveRpcError there for which I don't have an answer) Exception is the only way to indicate an error in the RPC

Re: [grpc-io] Re: bidi streaming RPC auto flow control and thread model

2022-12-22 Thread 'sanjay...@google.com' via grpc.io
> > >>> Wondering if there is limited token by default for auto flow control? >>> >> >> I guess there has to be a limit for backpressure to work. Are you asking >> if it's possible to change the token limit? >> > Yeah. I am asking what the limit is by default. If I want to change it, I > have

Re: [grpc-io] Re: bidi streaming RPC auto flow control and thread model

2022-12-22 Thread 'sanjay...@google.com' via grpc.io
> > > Wondering if there is limited token by default for auto flow control? > I guess there has to be a limit for backpressure to work. Are you asking if it's possible to change the token limit? > > If not, say I have 20 threads, one rpc with 20 streams with blocking > onNext() will block

[grpc-io] Re: bidi streaming RPC auto flow control and thread model

2022-12-18 Thread 'sanjay...@google.com' via grpc.io
Take a look at https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/manualflowcontrol and disableAutoRequest() for manual flow control. I think it is okay to block on onNext() call for automatic flow control. Check this https://grpc.github.io/grpc-java/javad

Re: [grpc-io] Re: Implement client-server session.

2022-11-01 Thread 'sanjay...@google.com' via grpc.io
nt something > like this in my grpcServer interface, is it possible to get this info > as part of Channel object itself? > > thanks, > komal > > On Tue, Nov 1, 2022 at 11:32 AM 'sanjay...@google.com' via grpc.io > wrote: > > > > You can use channelz to ge

[grpc-io] Re: Implement client-server session.

2022-11-01 Thread 'sanjay...@google.com' via grpc.io
You can use channelz to get the list of clients for a server. Check out https://grpc.io/blog/a-short-introduction-to-channelz/ https://github.com/grpc/proposal/blob/master/A14-channelz.md#sockets-and-listen-sockets https://github.com/grpc/grpc-java/blob/master/services/src/main/proto/grpc/channelz

[grpc-io] Re: Implement client-server session.

2022-11-01 Thread 'sanjay...@google.com' via grpc.io
Which gRPC language are you using? Also I am not sure I understand the session concept for the cluster mgmt use-case. There is a gRFC pull request at https://github.com/grpc/proposal/pull/319 that proposes a cookie based session affinity but not sure if that addresses your question. On Tuesday

[grpc-io] gRPC-Java v1.50.2 Released

2022-10-20 Thread 'sanjay...@google.com' via grpc.io
1.50.2 Release. notes Bug fixes gcp-observability: Supports period(.) in the service name part of regular expression for a fully-qualified method to accept "package.service" -- Also inclu

[grpc-io] Re: How to add a ClientStreamTracer to a managed channel ?

2022-09-29 Thread 'sanjay...@google.com' via grpc.io
The ClientStreamTracer is per stream so cannot be added to a managed channel. You have to use a ClientStreamTracer.Factory that returns a new ClientStreamTracer and using a client-interceptor inject the factory into a call using callOptions.withStreamTracerFactory. On Thursday, September 29, 20

Re: [grpc-io] gRPC endpoint with non-root path

2022-09-29 Thread 'sanjay...@google.com' via grpc.io
> But the client has no means of specifying it and the server has no means of distinguishing two implementations of the same interface definition You can distinguish using one of (package.ServiceName) and that's available both on the client on server side. There are other ways as well e.g. use

[grpc-io] Re: C# gNMI code to connect network device securely

2022-09-29 Thread 'sanjay...@google.com' via grpc.io
This group is for gRPC questions. What's gNMI? On Wednesday, September 7, 2022 at 10:56:33 AM UTC-7 neeraj...@gmail.com wrote: > Hi Group, > > Please help to share c# sample gNMI code to connect network device using > secure connection ( SSL certificate). > > Thanks, > Neeraj > -- You receiv

[grpc-io] Re: gRPC in user Defined Function in mysql

2022-09-29 Thread 'sanjay...@google.com' via grpc.io
Have you tried it and what specific issues are you running into that you need help with? On Friday, September 23, 2022 at 5:27:37 AM UTC-7 Leila Fathi wrote: > I want to create a UDF in myql which when it is triggers, a query should > be sent to a gRPC server, My question is that how could I in

[grpc-io] Re: dealing with variable network latency and streams of big request messages

2022-09-27 Thread 'sanjay...@google.com' via grpc.io
> Am I assuming correctly, that the current flow-control strategy will result in much more wasted idle times of the processing resources? Yes > I would need to implement something similar to dynamic TCP window size negotiation (but for messages, not bytes) or is there maybe some built-in, rea

[grpc-io] gRFC A55: Stateful Session Affinity for Proxyless gRPC

2022-08-16 Thread 'sanjay...@google.com' via grpc.io
I've created a gRFC for supporting Stateful Session Affinity for Proxyless gRPC https://github.com/grpc/proposal/pull/319 Please add your comments either in the PR or in this thread. Sanjay Pujare -- You received this message because you are subscr

[grpc-io] Re: gRPC C++ how to enforce different authentication for methods in same service

2022-08-01 Thread 'sanjay...@google.com' via grpc.io
> but make some functions accessible to specific people How are those authorized people identified? Authorization requires user authentication and it is best done with mTLS. > and encrypt the traffic for specific RPCs. All traffic can be encrypted even when you don't want to enforce user auth

[grpc-io] Re: Caused by: io.grpc.netty.shaded.io.netty.handler.ssl.SslHandshakeTimeoutException: handshake timed out after 10000ms

2022-08-01 Thread 'sanjay...@google.com' via grpc.io
Are you using the same Python server instance for plaintext and SSL/TLS? Don't you also have to configure the Python server to use TLS? On Monday, August 1, 2022 at 3:13:51 AM UTC-7 valentin...@gmail.com wrote: > Hi, > > I have a Client-Java and Server python, this is my problem: > Whitout aute

[grpc-io] Re: gRPC C++ how to enforce different authentication for methods in same service

2022-07-27 Thread 'sanjay...@google.com' via grpc.io
> on how this works in C++ (how do you actually read this file so that the gRPC service applies the configurations), Check this out https://github.com/grpc/proposal/blob/master/A2-service-configs-in-dns.md > *a single service where different PRCs have varying authentication requirements,* Do

[grpc-io] Re: gRPC C++ client failover to other node listed in ipv4: name resolver.

2022-07-27 Thread 'sanjay...@google.com' via grpc.io
Pls check this out https://github.com/grpc/proposal/blob/master/A6-client-retries.md#overview specifically We also provide a mechanism for servers to explicitly signal clients to retry after a settable delay. See detailed description of server pushback

[grpc-io] Re: Exception in thread "main" io.grpc.StatusRuntimeException: UNIMPLEMENTED: Method not found!

2022-07-19 Thread 'sanjay...@google.com' via grpc.io
A similar issue was reported before and this comment might be relevant for you? https://github.com/grpc/grpc-java/issues/7263#issuecomment-666145710 Even with the same protobuf file you may need to tweak the python side package name for the 2 sides to match (based on what I read in that commen

[grpc-io] Re: Grouping data from different RPC methods by the same client

2022-06-28 Thread 'sanjay...@google.com' via grpc.io
I guess this is really application logic and not a gRPC issue. You say "There is a Build_ID field in each request but I am not sure if it's unique for each client". Can you combine this with another id say project_id

[grpc-io] Re: gRPC Java: snapshots

2022-06-28 Thread 'sanjay...@google.com' via grpc.io
The snapshot builds are only uploaded as-needed and not done on a daily basis. You can build it yourself as ./gradlew publishToMavenLocal Let us know if that doesn't work for you. On Tuesday, June 28, 2022 at 6:44:57 AM UTC-7 Паша Варченко wrote: > I'm looking for a snapshot version of grpc-j

[grpc-io] Re: How grpc cancell a thread/running function in server side.

2022-06-23 Thread 'sanjay...@google.com' via grpc.io
This may partially answer your question: https://stackoverflow.com/questions/54588382/how-can-a-grpc-server-notice-that-the-client-has-cancelled-a-server-side-streami Or https://github.com/bazelbuild/bazel-buildfarm/blob/main/src/main/java/build/buildfarm/server/ExecutionService.java#L66 as a

[grpc-io] Re: Weird behavior with long-running bi-directional streaming calls

2022-05-25 Thread 'sanjay...@google.com' via grpc.io
Answered in https://github.com/grpc/grpc/issues/29087 ? On Monday, March 14, 2022 at 2:33:25 AM UTC-7 Alexander Ivash wrote: > Hi all, I'm experiencing weird behavior and would appreciate any hints on > how to troubleshoot it. In short, client <=> server communication is based > on long running

Re: [grpc-io] Re: Authentication in gRPC

2022-05-25 Thread &#x27;sanjay...@google.com&#x27; via grpc.io
Check out call-credentials https://grpc.github.io/grpc/cpp/classgrpc_1_1_call_credentials.html On Wednesday, March 23, 2022 at 8:01:33 PM UTC-7 ke jiang wrote: > Hi Julien, > > Is solution 2 available now? > > - Thanks > JK > -- You received this message because you are subscribed to the Goog

[grpc-io] Re: automatic download of SSL certificate from GRPC server

2022-05-25 Thread &#x27;sanjay...@google.com&#x27; via grpc.io
It might be easier to use curl or openssl command to get the server side cert and save it in a pem file to add to your trustStore on the client side. e.g. https://daniel.haxx.se/blog/2018/11/07/get-the-ca-cert-for-curl/ On Tuesday, May 3, 2022 at 7:28:41 AM UTC-7 sureshb...@gmail.com wrote: >

[grpc-io] Re: Benchmark data for gRPC + xDS. vs envoy

2022-05-25 Thread &#x27;sanjay...@google.com&#x27; via grpc.io
Hi Namanja Feel free to post your questions here and someone from the team will try to answer them (since Srini is no longer in the gRPC team) On Wednesday, May 11, 2022 at 7:59:41 AM UTC-7 nemanj...@gmail.com wrote: > Hi Srini, > > I was wondering if I could maybe ask you a few questions regar

[grpc-io] Re: Method/option to limit # of subchannels created?

2022-05-25 Thread &#x27;sanjay...@google.com&#x27; via grpc.io
You may consider creating a custom resolver (or extend the current ares resolver) to limit the number of addresses returned. On Sunday, May 22, 2022 at 7:11:39 AM UTC-7 peter@meraki.net wrote: > Thanks for the reply; I wanted to verify there wasn't some method that I > wasn't aware of. > It

[grpc-io] Re: serverCallStreamObserver.isCancelled() cannot detect client disconnection for gRPC version higher than 1.41.0

2022-04-14 Thread &#x27;sanjay...@google.com&#x27; via grpc.io
I am assuming it is grpc-java you are talking about. Couple of questions: - "when gRPC version is higher than 1.41.x" : can you pinpoint whether the client version or the server version causes this changed behavior? - "...cannot detect disconnection of a client ..." do you mean that when a disco

[grpc-io] Re: Is GRPC used in manufacturing industry?

2022-03-17 Thread &#x27;sanjay...@google.com&#x27; via grpc.io
On Wednesday, March 16, 2022 at 11:49:50 PM UTC-7 mirko...@gmail.com wrote: > I mean automation, robotics , etc. An example of one using gRPC in Robotics https://formant.io/features-2/ > > Is there a list of companies using grpc? > This one https://grpc.io/ mentions a few but there are many

[grpc-io] Re: How to correctly handle UNAVAILABLE: Abrupt GOAWAY returned from nginx

2022-03-12 Thread &#x27;sanjay...@google.com&#x27; via grpc.io
Upgrading to grpc 1.41 is definitely worth trying because of this https://github.com/grpc/grpc-java/pull/8359 . On Tuesday, March 8, 2022 at 4:26:21 PM UTC-8 chetan sood wrote: > Hi > > We are seeing the following exceptions in our grpc-java client when it's > trying to send a rpc to a grpc-ser

[grpc-io] Re: Implementing a logging application using gRPC

2022-01-24 Thread &#x27;sanjay...@google.com&#x27; via grpc.io
I assume the microservices will use gRPC to send their log entries to the centralized logging server. In that case I don't understand what you mean by "how these logs would be returned by the server?". The centralized logging server would log to a logging backend. Few questions: - you will need

[grpc-io] Re: How to analyze potential memory leak in Grpc-Java

2021-11-30 Thread &#x27;sanjay...@google.com&#x27; via grpc.io
> My question is SHOULD I call responseObserver.onCompleted() in onError too? It will be a good idea to call responseObserver.onError() inside your server's request-observer e.g. @Override public void onError(Throwable t) { responseObserver.onError(t); // or alternatively return a fixed throw

[grpc-io] Re: JDWP-Handshake when remote debugging?

2021-10-26 Thread &#x27;sanjay...@google.com&#x27; via grpc.io
Looks like port 6606 is used for both JDPA (remote debugging) and the gRPC server. If that's true you want to use a different port for remote debugging. See https://docs.oracle.com/javase/7/docs/technotes/guides/jpda/conninv.html . Your remote debugger should then also connect to that different

[grpc-io] Re: Send Dynamic gRPC messages without defining the message structure in proto

2021-09-15 Thread &#x27;sanjay...@google.com&#x27; via grpc.io
Which language do you want to do this in? On Sunday, September 12, 2021 at 9:39:16 PM UTC-7 vasantha...@gmail.com wrote: > Hi All! > > How can we send a Dynamic gRPC message without defining the model of > message in proto? > > > Say, for example, I want to send an int data type server to a

[grpc-io] Re: question on GRPC DNS resolution

2021-09-15 Thread &#x27;sanjay...@google.com&#x27; via grpc.io
Which gRPC language are you using? Is it C++? If yes, this could be an issue with the "ares" DNS used by default. I suggest reproducing the issue with some logs and logging it at github. On Sunday, September 12, 2021 at 11:37:05 PM UTC-7 sureshb...@gmail.com wrote: > In our intranet, GRPC serv

[grpc-io] Re: How to use serviceTransportFilter in GRPC JAVA Server

2021-08-20 Thread &#x27;sanjay...@google.com&#x27; via grpc.io
Do you see the callback `transportReady()` being called? Pls make sure `transportReady()` is called. Because of lazy init the connection may not even have been created unless you sent RPCs Also what's your use case that you need to know about a client connection init/termination status? On Th

[grpc-io] Re: Unary and Stream Interceptors - Per session authorization

2021-07-28 Thread &#x27;sanjay...@google.com&#x27; via grpc.io
In general the client authorization will be per RPC based on call metadata. You can also use the TLS session data (such as SAN values from the client cert) but the check will still be per RPC based on the server side interceptor architecture. You might be able to optimize by caching the authori

[grpc-io] Re: Are any of the gRPC devs supporting C++?

2021-07-06 Thread &#x27;sanjay...@google.com&#x27; via grpc.io
Hope this helps https://github.com/grpc/grpc/blob/master/examples/cpp/route_guide/route_guide_callback_server.cc#L194 On Thursday, July 1, 2021 at 12:43:57 PM UTC-7 christo...@gmail.com wrote: > I swear I've hit every resource I can find known to man for six or more > months and all I hear is

[grpc-io] Re: PHP Micro Services - gRPC Integration

2021-07-06 Thread &#x27;sanjay...@google.com&#x27; via grpc.io
This might help https://grpc.io/docs/languages/php/quickstart/ Like it says "You can only create gRPC clients in PHP. Use another language to create a gRPC server." On Friday, July 2, 2021 at 3:45:56 AM UTC-7 afde...@gmail.com wrote: > I am working with micro S

[grpc-io] Re: grpc-java compression and decompression

2021-07-01 Thread &#x27;sanjay...@google.com&#x27; via grpc.io
Couple of points: > I have figured out a way to add interceptor in server builder to add compression with type gzip You don't need an interceptor to add custom codec compression on the server side. Just use ServerBuilder.compressorRegistry(CompressorRegistry)

[grpc-io] Re: textual description in HealthCheckResponse

2021-06-30 Thread &#x27;sanjay...@google.com&#x27; via grpc.io
Normally the health checks are used by automated probers/health-checkers so the description is not needed there. I can see use-cases where the description is useful. The doc https://github.com/grpc/grpc/blob/master/doc/health-checking.md provides the context for the current proto and the actual

[grpc-io] Re: Secure Renegotiation IS NOT supported

2021-03-31 Thread &#x27;sanjay...@google.com&#x27; via grpc.io
Are you using gRPC C++? On Thursday, March 25, 2021 at 3:19:14 AM UTC-7 Jason Culligan wrote: > After reviewing the OpenSSL output from a gRPC TLS enabled endpoint I see > the message " Secure Renegotiation IS NOT supported". Is this configurable > from within gRPC.io? -- You received this m

[grpc-io] Re: 100K Requests per second with grpc-java using Netty

2021-03-07 Thread &#x27;sanjay...@google.com&#x27; via grpc.io
I have already replied on your StackOverflow thread as follows: Nothing in the gRPC stack seems to cause this limit. What's the average response time on the server side? It looks like you are limited by the ephemeral ports or TCP connection limit and you may want to tweak your kernel as describ

[grpc-io] Re: Synchronous and asynchronous waiting in GRPC service methods

2020-09-30 Thread &#x27;sanjay...@google.com&#x27; via grpc.io
Sorry, just realized you are using client streaming. If you need to share the resource just between 2 methods of the same service. Can you get rid of your lock and just use directExecutor https://github.com/grpc/grpc-java/blob/master/api/src/main/java/io/grpc/ServerBuilder.java#L58 ? Alterna

[grpc-io] Re: protobuf build error as Android

2020-09-16 Thread &#x27;sanjay...@google.com&#x27; via grpc.io
On Monday, September 7, 2020 at 4:28:31 AM UTC-7 miyuki onuma wrote: > My app now depends on protobuf-lite and protobuf-javalite, which triggers > the multiple class error. grpc-java now depends on protobuf-javalite and that seems to conflict with protobuf-lite. Can you remove your depende

[grpc-io] Re: Building a grpc reverse proxy using client headers

2020-08-10 Thread &#x27;sanjay...@google.com&#x27; via grpc.io
> how it can be achieved directly through implementation on gRPC interfaces? Nothing offhand that comes to mind. Probably the original code you leveraged is a good starting point. On Monday, August 10, 2020 at 9:40:21 AM UTC-7 chetan...@gmail.com wrote: > Hi. Thanks for sharing the informatio

[grpc-io] Re: Building a grpc reverse proxy using client headers

2020-08-09 Thread &#x27;sanjay...@google.com&#x27; via grpc.io
Envoy proxy uses xDS to dynamically change the routing configuration - some of these can be header matching rules that encapsulate your dynamic logic. This of course requires an "xDS" server to supply the route (and other dependent) configuration. In gRPC too there is support for xDS on the cl

[grpc-io] Re: Building a grpc reverse proxy using client headers

2020-08-09 Thread &#x27;sanjay...@google.com&#x27; via grpc.io
Have you considered using the Envoy proxy with static configuration so you don't need to develop a reverse proxy of your own? On Thursday, August 6, 2020 at 1:47:52 PM UTC-7 chetan...@gmail.com wrote: > Hi > > I am planning to build a grp

[grpc-io] Re: gRPC - Response Construction

2020-07-05 Thread &#x27;sanjay...@google.com&#x27; via grpc.io
Copy constructor implies copying object to the same type. You can use toBuilder() on the first object to get a builder that enables you to build the second object with the same

[grpc-io] Re: How install grpc c++ on Centos 8.

2020-07-01 Thread &#x27;sanjay...@google.com&#x27; via grpc.io
There was an issue created for this: https://github.com/grpc/grpc/issues/20529 and I see the issue resolved. You might find some pointers there or follow it up there? On Wednesday, July 1, 2020 at 8:39:53 AM UTC-7 sumith1...@gmail.com wrote: > How install grpc c++ on Centos 8. > How to setup bu

[grpc-io] gRPC Java 1.30.2 is released

2020-06-25 Thread &#x27;sanjay...@google.com&#x27; via grpc.io
gRPC Java 1.30.2 is released and available on Maven Central. *gRPC Java 1.30.2 Release Notes* *Bug Fixes* - xds: disable code for a future xds feature -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop

[grpc-io] A29: xDS-Based Security for gRPC Clients and Servers

2020-06-08 Thread &#x27;sanjay...@google.com&#x27; via grpc.io
Hello, I have created a PR https://github.com/grpc/proposal/pull/184 for "xDS-Based Security for gRPC Clients and Servers" which describes adding transport security (TLS or mTLS) to xDS-orchestrated gRPC connections. Note that xDS support to gRPC (client side) was already described in A27: xDS

Re: [grpc-io] Re: In a unary service, shouldn't onError after onNext be an illegal call?

2020-04-15 Thread &#x27;sanjay...@google.com&#x27; via grpc.io
StreamObserver is used for both streaming as well as unary responses. For streaming you call onNext in a loop followed by either onCompleted or onError. Unary is a special case of this where onNext is called at most once followed by onCompleted or onError. The grammar at https://github.com/grpc

[grpc-io] Re: GRPC java-Eureka client side Load balancing and Channel creation

2020-03-12 Thread &#x27;sanjay...@google.com&#x27; via grpc.io
This pointer might help https://github.com/LogNet/grpc-spring-boot-starter/blob/master/README.adoc#6-eureka-integration On Wednesday, March 11, 2020 at 11:42:55 PM UTC-7 pooj...@gmail.com wrote: > Hi > > Am here to ask how to registed GRPC server to eureka server. > Thanks in advance. > > >

[grpc-io] Re: Is it always recommended to use matching versions of gRPC for all languages in the same system?

2020-03-05 Thread &#x27;sanjay...@google.com&#x27; via grpc.io
You should be able to move to the recent version of gRPC Java in your use-case. Unless you know of a specific feature in the new version affecting the wire protocol (very unlikely) I don't see why moving to the newer gRPC Java version would be problematic for you. On Thursday, March 5, 2020 at

[grpc-io] Re: Java: All Hedging attempt call the same server endpoint

2020-01-29 Thread &#x27;sanjay...@google.com&#x27; via grpc.io
Your approach looks fine and seems to address the issue for multiple threads. I was trying to see if you could do without creating UUID and just use the ClientCall object reference as the key in the map but PickSubchannelArgs passed to RoundRobinLoadBalancer.ReadyPicker.pickSubchannel only give