Is it possible to use an existing Applicaiton server to serve gRPC endpoints?

22 views
Skip to first unread message

marctho...@gmail.com

unread,
Apr 1, 2020, 7:15:57 AM4/1/20
to grpc.io
Hi gRPC community,

I'm looking into making a the swap from gRPC for the client I work for - the app in question is quite monolithic and we are looking to decouple it, starting off with the service layer. The client asked that I look into gRPC, and while it looks like it would fit quite well with the client, I cannot seem to find any other way but to use the Netty library to actually host the gRPC services - is this a correct understadning?
The application has some core business logic hosted on an IBM WebSphere Application Server that the gRPC services would need to serve in their implementation.

If I were to use REST, i could use JAX-RS and deploy the the endpoints as a webmodule on the existing Application Server - does gRPC offer a similar way of hosting the services, or is my only option to create a Netty server, serving the services next to the Application server using the gRPC Netty server builder?

Eric Anderson

unread,
Apr 1, 2020, 1:54:20 PM4/1/20
to marctho...@gmail.com, grpc.io, Penn (Dapeng) Zhang
The Netty-based server is currently the only server offered by grpc-java.

There is a PR to allow exposing gRPC services through the servlet 4 API. However, due to how grpc methods are managed, the servlet would need to be deployed with the `/` path. The workaround I've seen most is for the gRPC server to be started on a separate port.

--
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+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/8aaab39a-cc1e-4743-b8f8-5c98cb476ef5%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages