Comments (3)
因为整体架构有点不同,之前gopush-cluster考虑更多是单IDC的集群实现,现在goim 只考虑comet是负责message dispatch(消息转发),意思就是多个IDC可以接入comet,然后再转发给router,做路由注册,从实现上有点不同,而且goim对消息的收发做了高度的优化
from goim.
这样的话,router就是所有消息的中心了,需要保存所有各个comet上在线用户的comet地址和session,感觉不容易横向扩展。之前gopush-cluster用一致性hash就不存在这个问题
from goim.
router 模块估算了一下即使是一亿在线,也没多少量,扩展可以做的,连接到router时候,内部可以拆分。目前腾讯其实是所有IDC router 全局同步的,这样各个IDC甚至可以直连本IDC的router模块查询
from goim.
Related Issues (20)
- 部署有问题,这样正常吗? HOT 2
- goim如何使用etcd?
- 怎么用啊 HOT 1
- 跑步起来,代码和说明文档不一致
- 任意room的一个消息是不是要被广播到所有的comet? HOT 3
- 项目不错,不过还是用自己的算了,目测go版本过于老旧,你应该及时更新go版本才对
- 如果goim里再加上微服务写在哪个模块比较好呢
- 多个线程处理同一个连接的目的 HOT 1
- comet 向客户端连接写入消息, protocol.go 文件中 WriteTCP方法,需要判断op == OpRaw, websocket缺不需要 HOT 1
- 消息堆积疑惑 HOT 1
- job是如何将消息推送到指定comnet? HOT 1
- step: 5 ws handshake timeout HOT 1
- job 消息丢失
- pkg/buffer可以直接用sync.Pool吧,为啥要自己实现一遍呢?
- 很多长连接(2w),仅连接保活,无业务情况,cpu忽然间隔很高:40%+
- 大量的房间或用户的情况下,无任何业务情况下,cpu间隔飙高30%
- 这么好的项目,感觉好久没更新了。有点可惜啊!! HOT 2
- 明显的逻辑问题,难道没人发现吗? HOT 6
- mac环境m1芯片不兼容discovery, 搞了docker容器把所有环境都装在里面了 一系列问题 老哥们来看看 HOT 5
- discovery 能把这个服务发现注册换成其他的吗。这个discovery好像早就没维护了。而且除了2.*版本其他也不兼容 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 goim.