GeezerVison is showing github.com — Google Cloud Speech + App engine using java white listed gRPC channel builder · Issue #356 · GoogleCloudPlatform/java-docs-samples
Google Cloud Speech + App engine using java white listed gRPC channel builder #356
Labels
🚨This issue needs some love.triage meI really want to be triaged. Description
I am building java based google cloud speech streaming recognize service app in app engine so different applications consuming this service will send browser recording microphone streaming audio as PCM chunks to get response transcript and it works fine in standalone using socket.io (StreamingRecognize.java) when we create` servlet, Google channel API with the mashup code from StreamingRecognize.java and we deploy in app engine it throws white listed error while getting gRPC connection build in ManagedChannel.
Is GAE have accessibility to run gRPC client with HTTP2 support?
@OverRide
public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
GoogleCredentials creds = GoogleCredentials.getApplicationDefault();
creds = creds.createScoped(OAUTH2_SCOPES);
ManagedChannel channel = ManagedChannelBuilder
.forAddress("speech.googleapis.com", 443)
.intercept(new ClientAuthInterceptor(creds, Executors.newSingleThreadExecutor()))
.build();
.....

Activity
lesv commented on Oct 10, 2016
GAE Standard doesn't yet support gRPC - it's close.
manjunaras commented on Oct 11, 2016
@lesv : Thanks a lot. If GAE doesn't support, any other web server or VM servers supports gRPC with HTTP2? i tried with tomcat 8 and 9 but no ALPN configured yet.
Any solution to deploy is acceptable.
lesv commented on Oct 11, 2016
gRPC no longer requires ALPN, if your looking at code that still uses it, we should fix it. I can easily make this stuff work w/ Jetty. (GAE Flex) You should be using netty-borringssl-static.
I didn't need any special configuration to make that work for Jetty, so I don't think you'll need it for Tomcat. If you can't make it work w/ that, ping, and I'll spend some time getting stuff to work w/ tomcat 9.
lesv commented on Oct 14, 2016
manjunaras and I have exchanged emails, he's going to move to GAE Flex using our Jetty images as a base image. I'm going to close this.
Metadata
Metadata
🚨This issue needs some love.triage meI really want to be triaged. Development
No branches or pull requestsIssue actions