Coder Social home page Coder Social logo

bloverpc's Introduction

bloveRPC

be based on netty5.0

test/java/blove/client/sendTest模拟客户端
test/java/blove/server/launcher模拟服务端

frameType
frameHeader frameBody frameTail
lengthField、frameType、acquireCode request、response crcCode、tail

采用消息定长机制处理粘包问题,定长的lengthField字段放于帧首位置引入LengthFieldBasedFrameDecoder、 LengthFieldPrepender分别用来添加长度字段和定长解析帧内容。

容器模拟

Simulate路径下存放了接口和其实现,利用定制好的配置路径反射获取其调用接口模拟spring IOC容器

任务处理

采用自定义线程池处理channelHandler中耗时任务,在task中进行任务处理和结果通知,通知利用channel的事件回调机制

多客户端设计

使用可重入cas管程进行生产消费通知机制模拟,任务提交模拟多客户端引导器

待实现

1.心跳检测机制(接入zookeeper)
2.实现定时特殊功能帧发送检测效果
3.实现可配置codec方式,更改帧的内容取消自动定长改为手动定长 4.test

bloverpc's People

Contributors

enjoysun 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.