netty和protobuf集成
项目使用spring-boot和maven开发,打开项目后执行maven install命令即可将protobuf的模型转化成数据模型,由于该demo中还有其他代码,下载的童鞋只需要关注personal.crixusshen.tomcat.netty下的SubReqServer和SubRespServer这2个类即可,直接执行main函数即可查看最终效果,100万条消息测试通过,基本在1分钟内就全部跑光。
下载地址
用户评论