lochakho / fastjgame Goto Github PK
View Code? Open in Web Editor NEWfastjgame 为 fast java game framework的缩写,如名字一样,该项目的目标是一个高性能,高稳定性的游戏架构。 它将是一个分布式多进程架构,游戏逻辑线程为单线程。游戏逻辑运行在Disruptor消费者线程中,其它线程都为辅助线程, 整体为多生产者单消费者模式。 高性能从网络层开始,目前已完成网络层搭建: IO框架为Netty,HttpClient为OkHttp3; 支持断线重连,支持websocket和tcp同时接入。 支持google protoBuf,json以及自定义消息序列化方式。 支持自定义消息映射; 未来将引入的技术: 分布式协调框架:zookeeper 作为配置中心,节点发现,以及不时的分布式锁需要 NoSQL数据库: mongodb 习惯了mongodb回不去MySQL
License: Apache License 2.0