Giter VIP home page Giter VIP logo

nettyrpcdemo's Introduction

使用Netty作为底层通信框架 ,写的一个简单的RPCdemo练习 ,参考自开源**-黄勇

开源组件

  • netty
  • spring-context
  • protostuff
  • zookeeper
  • cglib
  • jackson

运行

  • 安装运行zookeeper,配置rpc.properties中的端口参数
  • 启动运行ServerTest
  • 启动运行ClientTest

耗时统计示例

StopWatch '测试结果': running time (millis) = 1018
-----------------------------------------
ms     %     Task name
-----------------------------------------
00384  038%  第1次
00079  008%  第2次
00071  007%  第3次
00071  007%  第4次
00071  007%  第5次
00069  007%  第6次
00105  010%  第7次
00067  007%  第8次
00051  005%  第9次
00050  005%  第10次

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.