NewLife/X

新生命X组件,数据中间件XCode、日志、网络、RPC、序列化、缓存、Windows服务
详情 比较
Readme.MD
![XCode](https://www.newlifex.com/logo.png) 新生命团队基础框架X组件,包括`算法、日志、数据库、网络、RPC、序列化、缓存、Windows服务、多线程`等模块,支持`.Net Framework/.netstandard/Mono`。 2002~2019,成千上万兄弟姐妹们努力的见证! 国内文档中心:[http://doc.newlifex.com/](http://doc.newlifex.com/) 国外文档中心:[https://newlifex.github.io/XDoc/](https://newlifex.github.io/XDoc/) ## 新生命开源项目矩阵 各项目默认支持net4.5/net4.0/netstandard2.0 | 项目 | 年份 | 状态 | .NET Core | 说明 | | :--------------------------------------------------------------: | :---: | :----: | :-------: | -------------------------------------------------- | | 基础组件 | | | | 支撑其它中间件以及产品项目 | | [NewLife.Core](https://github.com/NewLifeX/X) | 2002 | 维护中 | √ | 算法、日志、网络、RPC、序列化、缓存、多线程 | | [XCode](https://github.com/NewLifeX/X) | 2005 | 维护中 | √ | 数据中间件,MySQL、SQLite、SqlServer、Oracle | | [NewLife.Net](https://github.com/NewLifeX/NewLife.Net) | 2005 | 维护中 | √ | 网络库,千万级吞吐率,学习gRPC、Thrift | | [NewLife.Cube](https://github.com/NewLifeX/NewLife.Cube) | 2010 | 维护中 | √ | Web魔方,权限基础框架,集成OAuth | | 中间件 | | | | 对接各知名中间件平台 | | [NewLife.Redis](https://github.com/NewLifeX/NewLife.Redis) | 2017 | 维护中 | √ | Redis客户端,微秒级延迟,百亿级项目验证 | | [NewLife.RocketMQ](https://github.com/NewLifeX/NewLife.RocketMQ) | 2018 | 维护中 | √ | 支持Apache RocketMQ和阿里云消息队列 | | [NewLife.MQ](https://github.com/NewLifeX/NewLife.MQ) | 2016 | 维护中 | √ | 轻量级消息队列 | | [NewLife.MQTT](https://github.com/NewLifeX/NewLife.MQTT) | 2019 | 开发中 | √ | 物联网消息协议 | | [NewLife.LoRa](https://github.com/NewLifeX/NewLife.LoRa) | 2016 | 维护中 | √ | 超低功耗的物联网远程通信协议LoRaWAN | | [NewLife.Thrift](https://github.com/NewLifeX/NewLife.Thrift) | 2019 | 维护中 | √ | Thrift协议实现 | | [NewLife.Hive](https://github.com/NewLifeX/NewLife.Hive) | 2019 | 维护中 | √ | 纯托管读写Hive,Hadoop数据仓库,基于Thrift协议 | | [NoDb](https://github.com/NewLifeX/NoDb) | 2017 | 开发中 | √ | NoSQL数据库,百万级kv读写性能,持久化 | | [NewLife.Cache](https://github.com/NewLifeX/NewLife.Cache) | 2018 | 维护中 | √ | 自定义缓存服务器 | | [NewLife.Ftp](https://github.com/NewLifeX/NewLife.Ftp) | 2008 | 维护中 | √ | Ftp客户端实现 | | [NewLife.MySql](https://github.com/NewLifeX/NewLife.MySql) | 2018 | 开发中 | √ | MySql驱动 | | 产品平台 | | | | 产品平台级,编译部署即用,个性化自定义 | | [AntJob](https://github.com/NewLifeX/AntJob) | 2019 | 开发中 | √ | 蚂蚁调度系统,大数据实时计算平台 | | [Stardust](https://github.com/NewLifeX/Stardust) | 2018 | 开发中 | √ | 星尘,微服务平台,分布式平台 | | [XLink](https://github.com/NewLifeX/XLink) | 2016 | 维护中 | √ | 物联网云平台 | | [XProxy](https://github.com/NewLifeX/XProxy) | 2005 | 维护中 | √ | 产品级反向代理 | | [XScript](https://github.com/NewLifeX/XScript) | 2010 | 维护中 | × | C#脚本引擎 | | [NewLife.DNS](https://github.com/NewLifeX/NewLife.DNS) | 2011 | 维护中 | × | DNS代理服务器 | | [NewLife.CMX](https://github.com/NewLifeX/NewLife.CMX) | 2013 | 维护中 | × | 内容管理系统 | | [SmartOS](https://github.com/NewLifeX/SmartOS) | 2014 | 保密中 | C++11 | 嵌入式操作系统,完全独立自主,ARM Cortex-M芯片架构 | | [GitCandy](https://github.com/NewLifeX/GitCandy) | 2015 | 维护中 | × | Git管理系统 | | 其它 | | | | | | [XCoder](https://github.com/NewLifeX/XCoder) | 2006 | 维护中 | √ | 码神工具,开发者必备 | | [XTemplate](https://github.com/NewLifeX/XTemplate) | 2008 | 维护中 | √ | 模版引擎,T4(Text Template)语法 | | [X组件 .NET2.0](https://github.com/NewLifeX/X_NET20) | 2002 | 存档中 | .NET2.0 | 日志、网络、RPC、序列化、缓存、Windows服务、多线程 | | [X组件 .NET4.0](https://github.com/NewLifeX/X_NET40) | 2002 | 存档中 | .NET4.0 | 日志、网络、RPC、序列化、缓存、Windows服务、多线程 | ## 组件各组成部分 ### 核心库 NewLife.Core 核心组件,支撑其它所有组件。 主要功能包括: + **[日志]** 统一ILog接口,内置控制台、文本文件、WinForm控件和网络日志等实现 + **[网络]** 单点最高84.5万长连接 + **[RPC]** 单点最高处理能力2256万tps + **[缓存]** 统一ICache接口,内置MemoryCache、Redis、DbCache实现 + **[安全]** AES/DES/RC4/RSA/DSA/CRC + **[多线程]** 定时调度TimerX + **[反射]** 快速反射、脚本引擎ScriptEngine + **[序列化]** Binary/Json/Xml + **[服务代理]** Windows服务、守护、监控 [日志]:https://github.com/NewLifeX/X/tree/master/NewLife.Core/Log [网络]:https://github.com/NewLifeX/X/tree/master/NewLife.Core/Net [RPC]:https://github.com/NewLifeX/X/tree/master/NewLife.Core/Remoting [缓存]:https://github.com/NewLifeX/X/tree/master/NewLife.Core/Caching [安全]:https://github.com/NewLifeX/X/tree/master/NewLife.Core/Security [多线程]:https://github.com/NewLifeX/X/tree/master/NewLife.Core/Threading [反射]:https://github.com/NewLifeX/X/tree/master/NewLife.Core/Reflection [序列化]:https://github.com/NewLifeX/X/tree/master/NewLife.Core/Serialization [服务代理]:https://github.com/NewLifeX/X/tree/master/NewLife.Core/Agent ### 数据中间件 [NewLife.XCode] [NewLife.XCode](https://github.com/NewLifeX/X/tree/master/XCode)主要特点: 1,设计极致的缓存,超高性能 2,反向工程,根据实体类主动建立数据库表结构并初始化数据,支持8种数据库 3,无限分表分库,支持任意数据库,无需修改业务代码 ## 未来路线图 1. [x] [魔方netcore版](https://github.com/NewLifeX/NewLife.Cube)。需要尽快推出,其它所有组件都已经支持netcore 2. [x] 产品级反向代理[XProxy](https://github.com/NewLifeX/XProxy)。一个XProxy服务支持多组反向代理设置,支持数据库和远程桌面等,netcore版,Web管理得等netcore魔方。比较简单,可以尽快完成。 3. [ ] 产品级分布式服务代理[XAgent](https://github.com/NewLifeX/XAgent)。XAgent.exe安装到各个Windows/Linux节点并注册成为服务,控制中心推送应用包到个节点,由XAgent启动并负责监管。工程量大,预计年底开工。 4. [x] ApiServer支持http协议。ApiServer在Linux上大量使用,验证了它的可靠性和性能,如果能够直接支持http协议,即可在一定程度上替代WebApi,避免维护两套系统。 5. [ ] ApiServer支持非标协议。标准协议是4字节头部,为了在物联网领域得到扩大,有必要支持非标协议。工作量不小,需要考虑的东西挺多。 6. [ ] 发布[NewLife.MySql](https://github.com/NewLifeX/NewLife.MySql)驱动。现在官方新版MySql驱动用起来还不错,自己的驱动倒是动力不强了,慢慢推进吧。 7. [ ] 发布NoDb数据库。至今为止最期待的大数据存储方案,各种算法,比较伤脑细胞。 8. [x] 开源[NewLife.Redis](https://github.com/NewLifeX/NewLife.Redis)。实现更多的Redis命令,列表、哈希字典等。比较简单,可以尽快搞定 9. [ ] 开源NewLife.Kafka。封装Apache官方驱动,实现生产消费接口IProducerConsumer。比较简单,尽快 10. [x] 升级[NewLife.Cache](https://github.com/NewLifeX/NewLife.Cache)。CacheServer/CacheClient由Json协议改为二进制协议,以获取极致性能。不太难 11. [x] 开源[NewLife.RocketMQ](https://github.com/NewLifeX/NewLife.RocketMQ)。实现发布消息、消费消息、负载均衡,支持Apache RocketMQ和阿里云消息队列 #### 新生命开发团队 `新生命团队始于2002年,部分开源项目具有15年以上漫长历史,源码库保留有2010年以来所有修改记录,并一直保持更新,请确保获取得到最新版本源代码` 网站:http://www.NewLifeX.com 开源:https://github.com/NewLifeX 博客:https://nnhy.cnblogs.com QQ群:1600800/1600838