# smart-socket **Repository Path**: lizhuang/smart-socket ## Basic Information - **Project Name**: smart-socket - **Description**: 848行代码实现极简、易用、高性能的国产java AIO通信框架,也许是IM、RPC、IoT开发的最佳选择。玩转通信只有两个接口的学习成本,如果觉得netty门槛太高,那就来试试smart-socket吧 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: https://smartboot.gitee.io/docs/smart-socket/ - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1228 - **Created**: 2018-07-18 - **Last Updated**: 2020-12-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## smart-socket [English](README_EN.md)[![996.icu](https://img.shields.io/badge/link-996.icu-red.svg)](https://996.icu) smart-socket是一款国产开源的Java AIO框架,追求代码量、性能、稳定性、接口设计各方面都达到极致。 如果smart-socket对您有一丝帮助,请Star一下我们的项目并持续关注; 如果您对smart-socket并不满意,那请多一些耐心,smart-socket一直在努力变得更好。 **官方QQ群:** 172299083🈵 、**830015805**(入群条件:***Star本项目***,非技术人员请勿扰,感谢) ### 版本说明 | 系列 | 版本 | 文档 | 说明 | | -- | -- | -- | -- | | 1.3 | [1.3.25](https://mvnrepository.com/artifact/org.smartboot.socket/aio-core/1.3.25) | 暂停维护 | 企业级,已稳定运行在众多企业的生产环境上 | | 1.4 | [1.4.6](https://mvnrepository.com/artifact/org.smartboot.socket/aio-core/1.4.6) | 《[smart-socket技术小册](https://smartboot.gitee.io/book/)》 |最新稳定版| | 1.4 | 1.4.7-SNAPSHOT | 《[smart-socket技术小册](https://smartboot.gitee.io/book/)》 |开发版,仅供学习交流,切勿在生产环境使用| ### Feature 1. 源码:代码量极少,可读性强。核心代码仅 1600 行左右,工程结构、包路径层次清晰。 2. 学习:学习门槛低,二次开发只需实现 2 个接口(Protocol、MessageProcessor)。具备通信开发经验的几乎无学习成本,根据作者经验来看大家普遍面临的困难在于"通信协议"的概念理解以及编解码实现,而非通信框架本身。 3. 使用:通过内存池(bufferPool)技术以及背压(back-pressure)机制,既能充分发挥机器性能,又能保证服务运行稳定性。 4. 服务:提供丰富的插件式服务,包括:心跳插件、断链重连插件、服务指标统计插件、黑名单插件、内存池监测插件。 ### 交流互助 如果您在使用的过程中碰到问题,可以通过下面几个途径寻求帮助,同时我们也鼓励资深用户给新人提供帮助。 - 加入QQ群:830015805 或 Email:zhengjunweimail@163.com。 - [开源问答](https://www.oschina.net/question/tag/smart-socket) - 通过 [Issue](https://gitee.com/smartboot/smart-socket/issues) 报告 bug 或进行咨询。 - 提交 [Pull Request](https://gitee.com/smartboot/smart-socket/pulls) 改进 smart-socket 的代码。 - 在开源中国发表smart-socket相关的技术性文章。 ### 开源生态 1. [smart-http](https://gitee.com/smartboot/smart-http) 国内首款基于smart-socket实现的Http服务器 2. [irtu-gps](https://gitee.com/wendal/irtu-gps) 基于iRTU项目,实现GPS数据的接收和展示 > 如果您的项目中使用了 smart-socket 并愿意在此处展现给大众,欢迎留言反馈。 ### 企业用户 ***虚席以待*** > 如果您所在的公司使用了 smart-socket 并愿意在此处展现给大众,欢迎留言反馈。格式:公司名+项目简述 ### 参考文献 - https://jfarcand.wordpress.com/2008/11/25/tricks-and-tips-with-aio-part-1-the-frightening-thread-pool/ - https://webtide.com/on-jdk-7-asynchronous-io/ - https://www.cnblogs.com/sandea/p/9094863.html ### 关于作者 Edit By 三刀 E-mail:zhengjunweimail@163.com Update Date: 2019-11-07