Comments (3)
非常抱歉两天后才看到您的建议,首先感谢您对summer提出宝贵的建议!
我一直很想用protobuf来传输数据,但由于框架编码水平不高而且各种逻辑耦合,使得protobuf加入有点困难,于是等我有时间的时候试一试加入吧,如果可以的话,节点间的传输顺便改成protostuff。
from summer.
不用改太多现有逻辑,只需要在协议类型中增加一种protobuf就行,以前的stringline,lengthfield等等还是能用。我试着加了一下,虽然写得有点丑,但是改动量貌似不太大。另外protobuf只是针对公网的客户端比较有用,rpc还是走json没问题,只需要修改server部分的代码,client只支持stringline和lengthfield都没问题。而且内部服务器通信json问题不大,也没必要一定用protobuf。protobuf的优势主要体现在公网客户端的流量和性能上。因为手机玩家使用json协议会增加两三倍的流量,这样是有点点多的。
from summer.
from summer.
Related Issues (20)
- 后期会加业务吗? HOT 1
- 服务端重启或者下线怎么处理? HOT 1
- test例子中的TestService报错 HOT 2
- 希望多增加一些例子 HOT 1
- 建议 HOT 4
- RpcClientMgr.java在一个Cluster下多个不同serverName时出现的BUG HOT 1
- 建议:增加节点间传输的protobuf HOT 2
- 请问支持帧同步吗/ HOT 1
- 没有找到test包 HOT 3
- 能否让service注解也具有数据库事务管理 HOT 1
- StringPasswordLineDecoder有内存泄露 HOT 3
- 在多服务器下的一些问题和建议
- 春夏秋冬
- 你好 HOT 1
- 启动的报这个错,好象是那个异步数据仓库加载初始化的时候报错!请问是什么原因? HOT 2
- SessionContext里面保存waitWriteQueue貌似有问题 HOT 1
- 大佬你使用的注解在哪个类中进行获取并处理的呢? HOT 1
- 看不懂...大佬能写个教程吗? HOT 1
- 大佬,可以加下你的微信吗。请教一下您
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from summer.