Giter Site home page Giter Site logo

rpcframework-demo's Introduction

rpcFramework-demo

模仿Dubbo**,自己实现的一个分布式RPC框架的Demo。没有很详细的写文档,感兴趣的同学可以阅读《从零开始写分布式服务框架》 by 李业兵一书,我是基于作者提供的源码的基础上进行改进的。

关键实现:
1)通过Spring自定义标签+FactoryBean的方式使得框架可以与Spring框架结合使用
2)基于Netty Reactor线程模型+JDK动态代理实现面向接口的RPC调用
3)每个Client与Provider之间默认保持一个IO连接,Provider端线程池分为IO线程池与业务线程池
4)使用Zookeeper作为服务注册中心,实现服务的自动注册与发现
5)基于Netty MessageToByteEncoder与ByteToMessageDecoders实现对自定义数据传输协议的编解码
6)基于JDK SPI机制实现框架的扩展性,目前的扩展点包含负载均衡机制、序列化机制与请求的过滤器处理机制

rpcframework-demo's People

Contributors

michael-wjw avatar wang-michael avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.