[
https://issues.apache.org/jira/browse/DUBBO-37?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16803709#comment-16803709
]
Trafalgar Ricardo Lu commented on DUBBO-37:
-------------------------------------------
Hi,
I am working on this project now, but some terrible problems comes.
I have figured out that how does AbstractProxyProtocol work. Method doExport()
aims to exporting services, usually we maintain a map to record mapping between
ip:port and server which contains a lot service, and service here can be
designed as HttpHandler which should execute request in the form of
HttpServletRequest. Method doRefer() aims to return a object which type is T,
we should use related beanFactory to crerate it.(like Hessian use its
hessianFactory and Webservice use anther).
But it goes good as gRPC API doesn't provide easy way to achieve it.
# doExport() I try to do as other third-party do: extend HttpHandler to
handle request, but gRPC dones't provide some key APIs because they are not
modified with public,like NettyServer.
# doRefer() When I try to get a respose type object, gRPC seems also dones't
provide related API.
I think one feasible way is using protobuf API to read and write data, but I
afraid there is too much work to do .I wonder Is that I misunderstand some
conceptions or not familiar enough with gRPC API?
Best Regards,
Lu
> Supporting gRPC Protocol.
> -------------------------
>
> Key: DUBBO-37
> URL: https://issues.apache.org/jira/browse/DUBBO-37
> Project: Apache Dubbo
> Issue Type: Task
> Reporter: Jun Liu
> Priority: Major
> Labels: GSoC2019
>
> gRPC is a very popular RPC framework built on top of the HTTP/2 protocol. We
> can try to integrate gRPC with Dubbo and make it one of the many third-party
> RPC protocols supported by Dubbo, just like Hessian
> ([code|https://github.com/apache/incubator-dubbo/tree/master/dubbo-rpc/dubbo-rpc-hessian],
>
> [doc|http://dubbo.apache.org/en-us/docs/user/references/protocol/hessian.html])
> and Thrift
> ([code|https://github.com/apache/incubator-dubbo/tree/master/dubbo-rpc/dubbo-rpc-thrift],
>
> [doc|http://dubbo.apache.org/en-us/docs/user/references/protocol/thrift.html]).
> - Make gRPC easy to use: allowing developers to program with interface
> directly, calling remote gRPC services like calling local services
> - Leverage service governance features provided by Dubbo: Service Discovery,
> Load Balancing and Traffic Management.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)