Giter Site home page Giter Site logo

triple's Introduction

变强之路先从一个自研RPC开始吧~

0.1.0 版本计划

  • 客户端Proxy动态代理
  • 服务端Service注册
  • 注册中心的抽象和一种实现(Zookeeper)
  • 传输层的Socket实现
  • 简单的序列化+反序列化
  • 最后完成一个mvp版本能run起来
  • 架构图如下,下面会由下到上介绍模块功能

avatar

  • Serilizer 序列化器,负责网络层传输的数据的序列化/反序列化
  • Net 网络层,负责将定义网络传输领对象和定义传输协议(socket、netty等)
  • RegisterCenter 注册中心,负责服务的注册与发现
  • Proxy 提供一套代理方案给客户端使用,主要功能是服务发现,收发网络请求
  • Server 服务提供者,主要功能是,服务注册,监听服务,调用本地方法,返回调用结果

注:

  • triple-sample 项目里的 sample2 已经可以完整的模拟出服务器端和客户端的交互,如果要测试学习的话,请先在本机装一个zookeeper,暂时项目的注册中心是用zk实现的

triple's People

Contributors

evancyz avatar

Stargazers

王栋 avatar  avatar  avatar lxw avatar  avatar wxmimperio avatar eno avatar Scorpio.Rao avatar roc avatar Yihua Huang avatar  avatar  avatar Enzo avatar 褐言 avatar

Watchers

James Cloos avatar Enzo avatar  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.