Git Product home page Git Product logo

rabbitcloud's Introduction

Rabbit RPC

A lightweight cross-platform RPC.

Features

  1. Apache License 2.0 protocol open source
  2. Supports client load balancing (polling and random)
  3. Support ZooKeeper and file sharing the service coordination
  4. Runtime client proxy generation (based Roslyn)
  5. Pre-generated client agent (based Roslyn)
  6. Abstract codec (JSON and ProtoBuffer)
  7. Abstract transmission channel (DotNetty)
  8. Exception information transfer (Local exceptions to the server runtime can be passed to the client)
  9. NET Core Project structure
  10. Cross-platform

Overview

Rabbit.Rpc

  1. Rpc core class library, has the following functions:
  2. Service Id generation
  3. Transfer the message model
  4. Type conversion
  5. Service routing abstraction
  6. Serializer abstraction (the default provides JSON serializer)
  7. Transport abstraction
  8. Codec abstraction (default provides JSON codec implementation)
  9. Client runtime (address resolver, address selector, remote call service)
  10. Service-side runtime (service entry management, service executor, service discovery abstraction, RpcServiceAttribute tagging service discovery implementation)

Rabbit.Rpc.ProxyGenerator

Service Agent Builder, provides features:

  1. Service agent implementation generation
  2. Service agent instance creation

extensions

Rabbit.Rpc.Codec.ProtoBuffer

ProtoBuffer protocol codec implementation.

Rabbit.Rpc.Coordinate.Zookeeper

Service Routing Management Based on ZooKeeper.

Rabbit.Transport.DotNetty

Implementation of DotNetty Transmission.

tools

Rabbit.Rpc.Tests

Unit test project.

Rabbit.Rpc.ClientGenerator

Pre-production service agent tool, provides the following functions:

  1. Generate the service proxy implementation code file
  2. Generate the service agent to implement the assembly file

Performance Testing

Test environment

OS CPU Memory disk network VM
Windows 10 x64 I7 3610QM 16GB SSD 127.0.0.1 no
Ubuntu 16.04 x64 I7 3610QM 4GB SSD 127.0.0.1 yes

Windows10 + NETCoreApp1.0 + JSON protocol

loop 10,000
first    2626ms
second 2597ms
third   2581ms

Windows10 + NETCoreApp1.0 + ProtoBuffer protocol

loop 10,000
first    2567ms
second 2617ms
third   2474ms

Ubuntu16.04-x64 + NETCoreApp1.0 + JSON protocol

loop 10,000
first    3205ms
second 3252ms
third   2837ms

Ubuntu16.04-x64 + NETCoreApp1.0 + ProtoBuffer protocol

loop 10,000
first    3391ms
second 3391ms
third   3574ms

related articles

communication

rabbitcloud's People

Contributors

majian159 avatar yoyofx avatar yyjdelete avatar

Watchers

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