洞察如何通过ios app灵活实现微信小程序的跨平台管理
764
2022-10-19
Rabbit.Rpc:.NET轻量级RPC框架
Rabbit RPC
A lightweight cross-platform RPC.
Features
Apache License 2.0 protocol open sourceSupports client load balancing (polling and random)Support ZooKeeper and file sharing the service coordinationRuntime client proxy generation (based Roslyn)Pre-generated client agent (based Roslyn)Abstract codec (JSON and ProtoBuffer)Abstract transmission channel (DotNetty)Exception information transfer (Local exceptions to the server runtime can be passed to the client)NET Core Project structureCross-platform
Overview
Rabbit.Rpc
Rpc core class library, has the following functions:Service Id generationTransfer the message modelType conversionService routing abstractionSerializer abstraction (the default provides JSON serializer)Transport abstractionCodec abstraction (default provides JSON codec implementation)Client runtime (address resolver, address selector, remote call service)Service-side runtime (service entry management, service executor, service discovery abstraction, RpcServiceAttribute tagging service discovery implementation)
Rabbit.Rpc.ProxyGenerator
Service Agent Builder, provides features:
Service agent implementation generationService 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:
Generate the service proxy implementation code fileGenerate 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
拥抱.NET Core,跨平台的轻量级RPC:Rabbit.Rpc.NET轻量级RPC框架:Rabbit.Rpc
communication
QQ Group:384413261(RabbitHub)Email:majian159@live.com
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~