Grpc-web: Java (Jetty) proxy

Created on 29 Aug 2018  路  5Comments  路  Source: grpc/grpc-web

Hi all,

is there any proxy solution in Java instead of Go or NGINX? I'd like to use a single webserver, and Jetty is already in the application for other purposes.

best regards,
N.

Most helpful comment

Our current thinking is to implement grpc-web over the servlet API ... mostly for Web tier integration. Due to similar work on grpc-swift, we plan to write up a doc on "recommended" approaches to integrate grpc-web with grpc on the server side.

All 5 comments

No. Do you like to help create a prototype ;), ideally as a servlet filter (e.g. which checks on content-type) that can be ported to other sevlet containers too?

We have some idea on a general guideline for developing in-process proxies, for different languages. I worked on servlet 3.x/4.x specs and the async model in 3.x should be sufficient to implement grpc calls from a filter.

Any chance of this being revisited?

BTW, I think it'd be better if this was implemented at the same level as the grpc Java server: a netty codec that transforms the GRPC-Web requests into GRPC's native HTTP/2 messages that are handled in the netty pipeline the same way as native GRPC calls.

Our current thinking is to implement grpc-web over the servlet API ... mostly for Web tier integration. Due to similar work on grpc-swift, we plan to write up a doc on "recommended" approaches to integrate grpc-web with grpc on the server side.

I see. Having any approach available in Java would be useful. I still think it would be better if it was exposed inside netty pipeline, for simplicity (ability to use same port, avoid container...) but I won't complain if a servlet-based approach is finally implemented.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

developerlaoz picture developerlaoz  路  3Comments

aberasarte picture aberasarte  路  6Comments

barrymichaeldoyle picture barrymichaeldoyle  路  4Comments

NiNJAD3vel0per picture NiNJAD3vel0per  路  3Comments

peteringram0 picture peteringram0  路  5Comments