All Projects → apache → Dubbo Python

apache / Dubbo Python

Licence: apache-2.0
Python Client For Apache Dubbo

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Dubbo Python

Tropical Fish
Pragmatic 风格的 Java EE 后端开发脚手架,开箱即用。基于 SpringBoot,技术选型采用主流的框架(Mybatis-Plus,Redisson,Xxl-job,Swagger)。项目特点:自定义查询语法, 可以自由组装查询条件查询数据,配合代码生成模块,提高研发效率;自定义 service 方法级别的文档生成规则,在业务方法增加必要的注解,可生成方法调用树,快速把握复杂代码业务逻辑。
Stars: ✭ 142 (-33.02%)
Mutual labels:  dubbo
Tesla
Tesla is a gateway service that provides dynamic routing,waf,support spring cloud,gRPC,DUBBO and more.
Stars: ✭ 161 (-24.06%)
Mutual labels:  dubbo
Spring Boot Sample
Spring-boot 集成druid数据库连接池,Spring-boot实现druid的动态数据源,Spring-boot实现定时任务schedule,spring-boot集成mybatis
Stars: ✭ 180 (-15.09%)
Mutual labels:  dubbo
Technology Talk
汇总java生态圈常用技术框架、开源中间件,系统架构、数据库、大公司架构案例、常用三方类库、项目管理、线上问题排查、个人成长、思考等知识
Stars: ✭ 12,136 (+5624.53%)
Mutual labels:  dubbo
Spring Cloud Dubbo Together
Spring Cloud与Dubbo共存方案
Stars: ✭ 155 (-26.89%)
Mutual labels:  dubbo
Source Code Hunter
😱 从源码层面,剖析挖掘互联网行业主流技术的底层实现原理,为广大开发者 “提升技术深度” 提供便利。目前开放 Spring 全家桶,Mybatis、Netty、Dubbo 框架,及 Redis、Tomcat 中间件等
Stars: ✭ 7,392 (+3386.79%)
Mutual labels:  dubbo
Raincat
强一致分布式事务框架
Stars: ✭ 1,785 (+741.98%)
Mutual labels:  dubbo
Blog
每周一篇,内容精简,不咸不淡,期盼探讨。微信公众号:芋道源码【纯源码分享公众号】
Stars: ✭ 2,327 (+997.64%)
Mutual labels:  dubbo
Priest
dubbo mybatis springboot base soa rest api framework with customer code generator
Stars: ✭ 160 (-24.53%)
Mutual labels:  dubbo
Dubbo Spring Boot Starter
Dubbo Spring Boot Starter
Stars: ✭ 2,102 (+891.51%)
Mutual labels:  dubbo
Dubbo Go Hessian2
caucho hessian2 implementation in Go for [apache/dubbo-go](https://github.com/apache/dubbo-go) which is compatible with [dubbo-hessian-lite](https://github.com/apache/dubbo-hessian-lite)
Stars: ✭ 146 (-31.13%)
Mutual labels:  dubbo
Dubbo Php Client
Dubbo的php客户端(the php client for dubbo)
Stars: ✭ 149 (-29.72%)
Mutual labels:  dubbo
Spring Boot Starter Dubbo
Dubbo Spring Boot 工程
Stars: ✭ 177 (-16.51%)
Mutual labels:  dubbo
Alibabacloud Microservice Demo
An Alibaba Cloud native microservice demo powered by Apache Dubbo and Spring Cloud Alibaba
Stars: ✭ 145 (-31.6%)
Mutual labels:  dubbo
Doe
自己编写dubbo客户端实现rpc调用,在线调试dubbo接口、dubbo接口可视化测试、自动化测试工具。
Stars: ✭ 183 (-13.68%)
Mutual labels:  dubbo
Api Generator
Api Generator是一款可以自动解析Controller类抽取REST接口信息并自动上传YApi的IDEA插件。YApi好伴侣,从此维护文档再也不是事儿了!
Stars: ✭ 139 (-34.43%)
Mutual labels:  dubbo
Chronus
Chronus是360金融技术团队基于阿里开源项目TBSchedule重写的分布式调度。
Stars: ✭ 166 (-21.7%)
Mutual labels:  dubbo
Castle Platform
Castle-Platform是一个以高性能、高扩展性为目标的java开发平台。它是spring-mvc, spring-data, spring-security, Querydsl, JPA, Redis, Mongodb, Neo4j, groovy-template, Thymeleaf, ExtJS6, dubbo, thrift的最佳实践。
Stars: ✭ 197 (-7.08%)
Mutual labels:  dubbo
Springboot Learning
《Spring Boot基础教程》,2.x版本持续连载中!点击下方链接直达教程目录!
Stars: ✭ 13,916 (+6464.15%)
Mutual labels:  dubbo
Dubbo Rpc Jsonrpc
The Json rpc module of Apache Dubbo project
Stars: ✭ 177 (-16.51%)
Mutual labels:  dubbo

Python Client For Apache Dubbo

Achieve load balancing on the client side、auto discovery service function with Zookeeper

Python calls the Dubbo interface's jsonrpc protocol

Please use dubbo-rpc-jsonrpc and configure protocol in Dubbo for jsonrpc protocol
Reference https://github.com/apache/incubator-dubbo-rpc-jsonrpc

Installation

Download code
python setup.py install
pip install
pip install dubbo-client==1.0.0b5 Git install
pip install git+http://git.dev.qianmi.com/tda/[email protected]
or
pip install git+https://github.com/qianmiopen/[email protected]

Load balancing on the client side, service discovery

Get the registration information of the service through the zookeeper of the registry.
Dubbo-client-py supports configuring multiple zookeeper service addresses. "host":"192.168.1.183:2181,192.168.1.184:2181,192.168.1.185:2181"
Then the load balancing algorithm is implemented by proxy, and the server is called.
Support Version and Group settings.

Example

    config = ApplicationConfig('test_rpclib')
    service_interface = 'com.ofpay.demo.api.UserProvider'
    #Contains a connection to zookeeper, which needs caching.
    registry = ZookeeperRegistry('192.168.59.103:2181', config)
    user_provider = DubboClient(service_interface, registry, version='1.0')
    for i in range(1000):
    try:
        print user_provider.getUser('A003')
        print user_provider.queryUser(
            {u'age': 18, u'time': 1428463514153, u'sex': u'MAN', u'id': u'A003', u'name': u'zhangsan'})
        print user_provider.queryAll()
        print user_provider.isLimit('MAN', 'Joe')
        print user_provider('getUser', 'A005')

    except DubboClientError, client_error:
        print client_error
    time.sleep(5)

TODO

Optimize performance, minimize the impact of service upper and lower lines.
Support Retry parameters
Support weight call
Unit test coverage

Licenses

Apache License

Thanks

Thank @jingpeicomp for being a Guinea pig. It has been running normally for several months in the production environment. Thank you!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].