Skip to content

Latest commit

 

History

History
93 lines (76 loc) · 3.12 KB

README.md

File metadata and controls

93 lines (76 loc) · 3.12 KB

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