Giter Site home page Giter Site logo

simplerpc's Introduction

simple rpc famework based on java

  • basic skills
    • spring fameworkrelated
    • netty
    • zk(docker zk recommended)
    • kryo

key feature

who can benefit from this project?

yes,there are lots of rpc famewroks been used in producting env.This project is facing for those who want to learn how an rpc famework works and really wanna build himself rpc famework.

This rpc famework is short but contains every necessary part that you may want to know.

how to start up (try) this distributed rpc famework

env ready

base on macos,you can follow those tips.

  • zk
    • zk version >= 3.5.1
    • you can use docker to install zk env
    1 docker pull containersol/zookeeper
    2 docker run --name my_zookeeper -p 2181:2181  containersol/zookeeper
    
    you can use brew to install zookeeper (brew install zookeeper) and use docker-toolbox to install docker.
    • zkCli. Use zkCli to test wheather the zk env has been start up.
      zkCli -server 127.0.0.1:2181
    

start up the rpc test demo

0 start the zookeeper in localhost

1 install the rpc-core and simplerpc-spring in local maven resporitory

  cd core
   mvn clean install -Dmaven.test.skip=true 
  
  cd spring 
   mvn clean install -Dmaven.test.skip=true 
   
  

2 strat up the SpringServerConfig in testdemo package,then start up the SpringClientConfig

3 open the url:localhost:8081/test/hello?say=123 in your browser ,enjoy

simplerpc's People

Stargazers

 avatar

Watchers

 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.