Coder Social home page Coder Social logo

关于socket.io传输的疑问 about pomelo HOT 5 CLOSED

netease avatar netease commented on May 29, 2024
关于socket.io传输的疑问

from pomelo.

Comments (5)

halfblood369 avatar halfblood369 commented on May 29, 2024

游戏中的广播机制确实会引起通讯数据的暴增,针对这点我们也做了很多工作吗,包括取消不必要数据的传输等,而且还做了个数据传输的协议:https://github.com/NetEase/pomelo-protocol , 你可以研究研究。

from pomelo.

gongxinheng avatar gongxinheng commented on May 29, 2024

Thanks我先研究研究

from pomelo.

halfblood369 avatar halfblood369 commented on May 29, 2024

关于数据压缩传输,我们还会有进一步的处理,比如说支持字节压缩等,欢迎你继续关注Pomelo。

from pomelo.

gongxinheng avatar gongxinheng commented on May 29, 2024

非常期待
我觉得处于一个局域网内的服务器之间的通信消息,用json的方式传输比较方便。可以免去一些写序列化函数的工作量,也不会造成带宽压力。
客户端和frontend之间的通讯需要采用自定义的序列化消息传送会比较节省。

from pomelo.

piaohai avatar piaohai commented on May 29, 2024

是的,目前主要考虑开发效率与方便性等各方面的原因,后续会在传输与压缩方面进行字节码的映射等特性方面进行完善

from pomelo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.