All Projects → NewLifeX → Newlife.net

NewLifeX / Newlife.net

Licence: mit
单机吞吐2266万tps的网络通信框架

Labels

Projects that are alternatives of or similar to Newlife.net

Go Os
Stars: ✭ 185 (-11.06%)
Mutual labels:  rpc
Xian
reactive风格的微服务框架
Stars: ✭ 196 (-5.77%)
Mutual labels:  rpc
Asio2
Header only c++ network library, based on asio,support tcp,udp,http,websocket,rpc,ssl,icmp,serial_port.
Stars: ✭ 202 (-2.88%)
Mutual labels:  rpc
Magiconion
Unified Realtime/API framework for .NET platform and Unity.
Stars: ✭ 2,505 (+1104.33%)
Mutual labels:  rpc
Erpc
An efficient, extensible and easy-to-use RPC framework.
Stars: ✭ 2,274 (+993.27%)
Mutual labels:  rpc
Deepr
A specification for invoking remote methods, deeply!
Stars: ✭ 200 (-3.85%)
Mutual labels:  rpc
Doe
自己编写dubbo客户端实现rpc调用,在线调试dubbo接口、dubbo接口可视化测试、自动化测试工具。
Stars: ✭ 183 (-12.02%)
Mutual labels:  rpc
Grpc Go
The Go language implementation of gRPC. HTTP/2 based RPC
Stars: ✭ 15,042 (+7131.73%)
Mutual labels:  rpc
Rpc
Simple RPC style APIs with generated clients & servers.
Stars: ✭ 192 (-7.69%)
Mutual labels:  rpc
Autobahn Python
WebSocket and WAMP in Python for Twisted and asyncio
Stars: ✭ 2,305 (+1008.17%)
Mutual labels:  rpc
Buttonrpc cpp14
几百行代码实现的modern c++ rpc library
Stars: ✭ 187 (-10.1%)
Mutual labels:  rpc
Fps Creator Classic
Source code and files for FPS Creator Classic
Stars: ✭ 188 (-9.62%)
Mutual labels:  rpc
Scpcb
SCP - Containment Breach
Stars: ✭ 199 (-4.33%)
Mutual labels:  rpc
Bigfile
Bigfile -- a file transfer system that supports http, rpc and ftp protocol https://bigfile.site
Stars: ✭ 186 (-10.58%)
Mutual labels:  rpc
Loqui
RPC Transport Layer - with minimal bullshit.
Stars: ✭ 203 (-2.4%)
Mutual labels:  rpc
Activej
ActiveJ is an alternative Java platform built from the ground up. ActiveJ redefines web, high load, and cloud programming in Java, featuring ultimate performance and scalability!
Stars: ✭ 183 (-12.02%)
Mutual labels:  rpc
Iot Dc3
IOT DC3 is an open source, distributed Internet of Things (IOT) platform based on Spring Cloud. It is used for rapid development of IOT projects and management of IOT devices. It is a set of solutions for IOT system.
Stars: ✭ 195 (-6.25%)
Mutual labels:  rpc
Watsontcp
WatsonTcp is the easiest way to build TCP-based clients and servers in C#.
Stars: ✭ 209 (+0.48%)
Mutual labels:  rpc
Thunder
⚡️ Nepxion Thunder is a distribution RPC framework based on Netty + Hessian + Kafka + ActiveMQ + Tibco + Zookeeper + Redis + Spring Web MVC + Spring Boot + Docker 多协议、多组件、多序列化的分布式RPC调用框架
Stars: ✭ 204 (-1.92%)
Mutual labels:  rpc
Kekkonen
A remote (CQRS) API library for Clojure.
Stars: ✭ 201 (-3.37%)
Mutual labels:  rpc

网络库历史

X组件网络库一共经历了数代:
1,2005年,APM模型,反向代理、点卡服务端
2,2010年,SAEA模型,P2SP网络,单机7万连接
3,2014年,物联网云平台,ApiServer单机84.5万连接
4,2018年,高速RPC,ApiServer单机16万tps,NetServer单机2266万tps
5,2020年,物联网,单机400万长连接

说明文档

NewLife.Net——开始网络编程
NewLife.Net——构建可靠的网络服务
NewLife.Net——网络压测单机2266万tps
NewLife.Net——管道处理器解决粘包
NewLife.Net——RPC框架NewLife.ApiServer
NewLife.Net——单机400万长连接压力测试

SRMP协议封包

经过十多年实战经验积累以及多方共同讨论,新生命团队制订了一种简单而又具有较好扩展性的RPC(Remote Procedure Call)协议。
全称:简易远程消息交换协议,简称: SRMP(Simple Remote Messaging Protocol)

SRMP主要定位于以下场景:
1, 内网高速通信,大吞吐量(>100万tps)、低延迟(<1ms)
2, 外网远程通信,稳定可靠,海量连接(>10万)
3, 物联网硬件设备,容易简单实现协议

通信协议

标准网络封包协议:1 Flag + 1 Sequence + 2 Length + N Payload
1个字节标识位,标识请求、响应、错误、加密、压缩等;
1个字节序列号,用于请求响应包配对;
2个字节数据长度N,小端字节序,指示后续负载数据长度(不包含头部4个字节),解决粘包问题;
N个字节负载数据,数据内容完全由业务决定,最大长度65534=64k-2。
扩展长度,Length为0xFFFF时,封包协议扩展4字节作为新长度,包头共8字节。

指令格式

包头后的负载数据存放指令,默认采用Json序列化,utf-8编码

请求:S服务名 + N请求参数 响应:S服务名 + 4响应码 + N响应数据

标准指令例子如下:
请求,00012500 + 05 + Login + 1E + {user:"Stone",pass:"password"}
响应,80011D00 + 05 + Login + 00000000 + 12 + {data:"大石头"}
头部4字节,第一个字节最高位区分请求响应,第二个字节序列化,第三第四字节是长度,小字节序

压力测试

NewLife.Net压力测试,峰值4.2Gbps,50万pps,消息大小24字节,消息处理速度2266万tps!
共集合20台高配ECS参与测试,主服务器带宽6Gbps、100万pps,16核心64G内存。另外19台共模拟400个用户连接,1316+632=400,每用户发送2000万个消息,服务端收到后原样返回。
Agent2 全貌

新生命开源项目矩阵

各项目默认支持net4.5/net4.0/netstandard2.0

项目 年份 状态 .NET Core 说明
基础组件 支撑其它中间件以及产品项目
NewLife.Core 2002 维护中 算法、日志、网络、RPC、序列化、缓存、多线程
XCode 2005 维护中 数据中间件,MySQL、SQLite、SqlServer、Oracle
NewLife.Net 2005 维护中 网络库,千万级吞吐率,学习gRPC、Thrift
NewLife.Cube 2010 维护中 Web魔方,企业级快速开发框架,集成OAuth
NewLife.Agent 2008 维护中 服务管理框架,Windows服务、Linux的Systemd
中间件 对接各知名中间件平台
NewLife.Redis 2017 维护中 Redis客户端,微秒级延迟,百亿级项目验证
NewLife.RocketMQ 2018 维护中 支持Apache RocketMQ和阿里云消息队列,十亿级项目验证
NewLife.MQTT 2019 维护中 物联网消息协议,客户端支持阿里云物联网
NewLife.LoRa 2016 维护中 超低功耗的物联网远程通信协议LoRaWAN
NewLife.Thrift 2019 维护中 Thrift协议实现
NewLife.Hive 2019 维护中 纯托管读写Hive,Hadoop数据仓库,基于Thrift协议
NoDb 2017 开发中 NoSQL数据库,百万级kv读写性能,持久化
NewLife.Ftp 2008 维护中 Ftp客户端实现
产品平台 产品平台级,编译部署即用,个性化自定义
AntJob 2019 维护中 蚂蚁调度系统,大数据实时计算平台
Stardust 2018 维护中 星尘,微服务平台,分布式平台
XLink 2016 维护中 物联网云平台
XProxy 2005 维护中 产品级反向代理
XScript 2010 维护中 × C#脚本引擎
SmartOS 2014 维护中 C++11 嵌入式操作系统,完全独立自主,ARM Cortex-M芯片架构
GitCandy 2015 维护中 × Git管理系统
其它
XCoder 2006 维护中 码神工具,开发者必备
XTemplate 2008 维护中 模版引擎,T4(Text Template)语法
X组件 .NET2.0 2002 存档中 .NET2.0 日志、网络、RPC、序列化、缓存、Windows服务、多线程

新生命开发团队

新生命团队始于2002年,部分开源项目具有19年以上漫长历史,源码库保留有2010年以来所有修改记录
网站:https://www.newlifex.com/
文档:https://www.yuque.com/smartstone/nx
国外:https://github.com/NewLifeX
博客:https://nnhy.cnblogs.com
QQ群:1600800/1600838

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].