Using Java, netty, zookeeper, spring boot and mongo, redis tools to development of game hot update distributed framework. Clients to gateways use TCP custom protocols, Intranet message forwarding use GRPC forwarding, all stateless services can be horizontally extended, and stateful services can be horizontally extended through partition, state binding and other rules. The basic architecture of the project is shown below:
- Logical scripts that end with the project module at the end of
scripts
as the corresponding project can be hot-updated. docker run
-
game-common Common logic code
-
game-message Protobuf message,grpc service
-
game-gate Message routing
-
game-api Login authentication ,charge verify
-
game-hall Game Demo
-
game-manage Web background management, GM, etc
-
game-res Server resource files, Docker scripts, documents, etc
-
game-world: World service demo, pause
- spring-boot
- mongodb
- maven
- netty
- grpc
- redis
- zookeeper
- kafka
中文文档
QQ Communication group: 143469012
- add microservice
- protobuf sync to GameServer4g
- Kafka完善
- 流程测试
- 网络调试
- 网络测试
- 各个服务数据库分开,不共享
- 消息id映射规则,不能通过编号获取