Giter VIP home page Giter VIP logo

jprotobuf-rpc-demo's Introduction

Jprotobuf-rpc-demo

This is a Jprotobuf rpc demo.

1. Why Jprotobuf-rpc-sorcket?

1.1 Introduction to Jprotobuf-rpc-sorcket

(1). The project is built based on Baidu Jprotobuf-rpc-socket. Here is the user guide.
And the Jprotobuf-rpc-socket is built on Protocol Buffer(It is Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data โ€“ think XML, but smaller, faster, and simpler. ) and Netty which is a impelementation of NIO.

1.2 Why Jprotobuf-rpc-sorcket?

(1). Compare to another baidu rpc framework, navi-pbrpc, Jprotobuf rpc supports more annotions, which makes it much more easier to use.
(2). And another reason why we use the Jprotobuf-rpc-socket other than navi-pbrpc is, the creator of navi-pbrpc has left Baidu and the project hasn't been updatding for years, however the Jprotobuf-rpc-socket is still updating for bug fix and adding features.
(3). Comparing to some other kinds of rpc framework like Google protobuf-rpc-pro and Facebook thrift, Jprotobuf-rpc-socket seems much more easier to use.

2. Steps to test the demo

2.1 About this demo

Here is the logic picture.

gras

2.2. Steps to test the demo

(1). Compile the the project with command:

mvn clean -Pdevelop package

You can add the flowing command behind to skip tests

-Dmaven.test.skip=true 

(2). Deploy the Jprotobuf-rpc-demo-api.war into the ROOT of tomcat.
(3). Run the test case under the module: Jprotobuf-rpc-demo-facade called:

HelloWorldServiceTest.testHelloWorldService()

(4). On linux, you can check if the rpc service running by command:

lsof -i:1033
netstat -tunlp | grep 8150

If you see something like:

COMMAND   PID     USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
java    60490 dddddddd  233u  IPv6 0xd360b8ddfd176255      0t0  TCP *:netinfo-local (LISTEN)

That means the service is running without error.

jprotobuf-rpc-demo's People

Contributors

yinhaomin avatar

Watchers

James Cloos avatar  avatar

Forkers

14132465

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.