Apache dubbo

Clone this repo:
  1. 9faa6a1 Merge pull request #6 from qixiaobo/fix-group-for-register by min · 5 years ago master
  2. ddc6c5e change getRawParameter to getParameter because group never appears in special meta information by qixiaobo · 5 years ago
  3. 11dc687 Merge pull request #14 from qixiaobo/fix-no-args-method by min · 5 years ago
  4. 6130e36 Merge pull request #12 from qixiaobo/refactor-code-style by min · 5 years ago
  5. 660a69b maybe we hava a method without args by qixiaobo · 5 years ago

中文版本

Dubbo Proxy

Dubbo Proxy, a gateway of Dubbo, switch from HTTP request to Dubbo protocol,then invoke Dubbo service and return to the result. Later Dubbo Proxy would combine several features, including circuit breaker, current-limiting, api management.

instructions

HTTP request format:

{application Name}/​{Interface name}?version={version}&group={group}

Group and version is the mapping data in Dubbo service.

http POST body:

{
    "methodName" : "sayHello",
    "paramTypes" : ["org.apache.dubbo.demo.model.User"],
    "paramValues": [
        {
            "id": 23,
            "username": "testUser"
        }
    ]
}
  • In the Dubbo 2.7 version and later updates versions, paramTypes is optional data, if not filled in, Dubbo Proxy would get related mapping data from metadata center.
  • You can set registry address and metadata center address in application.yml
proxy.registry.address: zookeeper://127.0.0.1:2181   #registry center address, same as Dubbo service's 
proxy.metadata-report.address: zookeeper://127.0.0.1:2181  #metadata center address, used by paramType search, support for dubbo 2.7 or later