[grpc-io] Re: gRPC & transaction support

2018-11-05 Thread glertxundi
Dead issue but I would like to resurrect it because this wasn't answered at all. Simple use case which can easily illustrate the problem: Two different services OrderService (with CreateOrder method) and AuditService (with Audit method). You want to create the order and, in case everything

[grpc-io] Re: How to terminate a C++ client

2018-11-05 Thread Prashant Shubham
Have a look at this discussion: https://groups.google.com/forum/#!topic/grpc-io/hahFSzQBN4s . Hope it helps. On Thursday, November 1, 2018 at 8:42:42 AM UTC+5:30, michi@crowdstrike.com wrote: > > I have a C++ client that reads data from a stream using a ClientReader. > The client runs a

[grpc-io] Handling CORS policy

2018-11-05 Thread guruzhost
I'm getting cors issue when try to connect web-grpc to golang grpc server saying.. Access to XMLHttpRequest at 'http://domain.com/data_grpc.DataHandler/Get' from origin 'http://domain.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No

[grpc-io] Handling cors issue in web-grpc

2018-11-05 Thread guruzhost
I'm getting cors issue when try to connect web-grpc to golang grpc server saying.. Access to XMLHttpRequest at 'domain.com:/data_grpc.DataHandler/Get' from origin 'http://domain.com' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http,

Re: [grpc-io] Re: gRPC & transaction support

2018-11-05 Thread Robert Engels
You need a database and logger service that supports XA transactions. Sometimes it is easier to just log in the database under the same transaction. > On Nov 5, 2018, at 3:16 AM, glertxu...@gmail.com wrote: > > Dead issue but I would like to resurrect it because this wasn't answered at >

Re: [grpc-io] gRPC & transaction support

2018-11-05 Thread robert engels
You might find this helpful: https://www.baeldung.com/transactions-across-microservices > On Nov 5, 2018, at 11:20 AM, Robert Engels wrote: > > Regardless of what google does or doesn’t do, you can’t solve the problem > without XA transactions - either built in or rolling your own (lots of

Re: [grpc-io] Re: gRPC & transaction support

2018-11-05 Thread Robert Engels
Regardless of what google does or doesn’t do, you can’t solve the problem without XA transactions - either built in or rolling your own (lots of work and not very performant). The easiest way is to log everything in a persistent log that will occur, do the operations and verify that the

Re: [grpc-io] Re: gRPC & transaction support

2018-11-05 Thread 'Sankate Sharma' via grpc.io
The problem you are describing is pretty common and not specific to gRPC, it will be there for any micro service based architecture. Typically it will be the orchestration layer that will be responsible for making sure that both operations succeed, and implement any retry logic. Or have the order

Re: [grpc-io] Re: gRPC & transaction support

2018-11-05 Thread Christian Rivasseau
The user group for an RPC framework is not the right place to ask how you should implement your transactions. This is 100% orthogonal issue, and one that you would have with REST services too. On Mon, Nov 5, 2018 at 6:13 PM wrote: > I find really hard to believe that Google uses XA

Re: [grpc-io] Unable to set-up SSL on gRPC server. org/eclipse/jetty/alpn/ALPN ClassNotFound.

2018-11-05 Thread 'Carl Mastrangelo' via grpc.io
Random guess, but doesn't tcnative need to be a stonger dependency than compile? It needs to be a compile+runtime dependency. On Thursday, November 1, 2018 at 2:00:22 PM UTC-7, Jaroslav Gorskov wrote: > > EDIT: I added a -javaagent JVM argument and pointed it to ALPN. Apparently > it should be

[grpc-io] Re: gRPC & transaction support

2018-11-05 Thread 'Carl Mastrangelo' via grpc.io
I think OP hit the nail on the head with REST being a bad fit for transactions. A previous team I worked on had pretty much the same problem. There are two solutions to having transaction like semantics. 1. Make all RPCs compareAndSwap-like, effectively making them atomic operations.

Re: [grpc-io] Re: gRPC & transaction support

2018-11-05 Thread glertxundi
I find really hard to believe that Google uses XA transactions for its own services. Take this AuditLog service as an example which presumably is used/consumed as a middleware on their services (due to

Re: [grpc-io] Handling CORS policy

2018-11-05 Thread guruzhost
Solved using envoy as reflection to Golang grpc server -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscr...@googlegroups.com. To post to this group,

[grpc-io] Grpc java retry documentation

2018-11-05 Thread David M
I am trying to find a document describing grpc java retry behavioral. All I was able to find is this proposal : https://github.com/grpc/proposal/blob/master/A6-client-retries.md It's not clear what is already implemented. Thanks! -- You received this message because you are subscribed to the

Re: [grpc-io] Re: gRPC & transaction support

2018-11-05 Thread glertxundi
Just to finish up the discussion, at least from my side, I will answer one by one: @Christian Rivasseau I agree that this is not the correct forum but as I wasn't the one that opened the issue I found it really handy to re-ask in a forum where lots of expert people could expose their own

Re: [grpc-io] Handling CORS policy

2018-11-05 Thread 'Stanley Cheung' via grpc.io
It might be easier if you log an issue to to our Github repo github.com/grpc/grpc. Which proxy are you using? On Mon, Nov 5, 2018 at 3:02 AM wrote: > > I'm getting cors issue when try to connect web-grpc to golang grpc server > saying.. > > Access to XMLHttpRequest at

Re: [grpc-io] Re: gRPC & transaction support

2018-11-05 Thread robert engels
Not sure if it is the OP, but given the order service example cited, a fairly simple solution that isn’t transactional, would be: use service that hands-out globally unique txIDs. 1) use audit service to log “handling order for txID” 2) use order service to commit order, attaching TxID to the

[grpc-io] Re: Grpc java retry documentation

2018-11-05 Thread David M
Also, is it possible to retry on DEADLINE_EXCEEDED like this: "retryableStatusCodes": [ "UNAVAILABLE", "RESOURCE_EXHAUSTED", "DEADLINE_EXCEEDED" ] On Monday, November 5, 2018 at 12:55:42 PM UTC-8, David M wrote: > > I am trying to find a document describing grpc java retry behavioral. >