Skip to content
Permalink
Browse files
修改readme中的调用说明
TODO的完善
  • Loading branch information
JoeCao committed Apr 14, 2015
1 parent 809b66c commit 85069e800fbdc25571acb78ed2ea33d22b024de7
Showing 1 changed file with 7 additions and 5 deletions.
@@ -1,6 +1,6 @@
Python Dubbo Client
=====================================
实现客户端的负载均衡、自动发现服务功能
实现客户端的负载均衡、配合Zookeeper自动发现服务功能
-------------------------------------


@@ -23,8 +23,10 @@ pip install git+https://github.com/ofpay/dubbo-client-py.git

### Example
```python
config = ApplicationConfig('test_rpclib')
service_interface = 'com.ofpay.demo.api.UserProvider'
registry = ZookeeperRegistry('172.19.65.33:2181')
#registry包含了和zookeeper的连接,该对象需要缓存
registry = ZookeeperRegistry('192.168.59.103:2181', config)
user_provider = DubboClient(service_interface, registry, version='1.0')
for i in range(1000):
try:
@@ -41,9 +43,9 @@ pip install git+https://github.com/ofpay/dubbo-client-py.git
```

### TODO
优化性能
支持Retry参数
支持RoundRobin的调用
优化性能,将服务上下线的影响降到最小
支持Retry参数
支持权重调用

### Licenses
MIT License

0 comments on commit 85069e8

Please sign in to comment.