XuqmGroup
|
37f34876be
|
feat(im): Redis Pub/Sub 集群广播,支持水平扩展
架构变更:
- 新增 cluster/ClusterMessage.java:消息信封 record
- 新增 cluster/ImClusterPublisher.java:发布到 Redis im:broadcast 频道
- 新增 cluster/ImClusterListener.java:订阅 Redis,转发给本地 WS 会话
- 新增 config/RedisClusterConfig.java:注册 Redis 监听容器
- 修改 MessageService:send/revoke 改用 ImClusterPublisher 替代直接推送
集群路由原理:任意节点收到消息 → 写 DB → 发布 Redis →
所有节点监听并尝试推送 → 只有持有目标 session 的节点实际送达
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-04-24 15:08:54 +08:00 |
|
XuqmGroup
|
94aa4001d3
|
feat(im-service): 添加群组 HTTP API (GroupController)
- POST /api/im/groups:创建群组(含成员列表)
- GET /api/im/groups:按 appId 列出群组
- POST /api/im/groups/{groupId}/members:添加成员
- DELETE /api/im/groups/{groupId}/members/{targetUserId}:移除成员
ImGroupService 已有实现,仅补充 controller 层
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-04-24 11:14:47 +08:00 |
|
XuqmGroup
|
8fe4ae99cc
|
feat: finalize backend deployment and api docs
|
2026-04-24 10:42:11 +08:00 |
|
XuqmGroup
|
05c9639523
|
config: use remote MySQL(39.107.53.187) and Redis(redisdev.xuqinmin.com)
|
2026-04-21 23:11:05 +08:00 |
|
XuqmGroup
|
3e81034c11
|
docs: add detailed documentation
|
2026-04-21 22:25:31 +08:00 |
|
XuqmGroup
|
a719c08a5a
|
chore: initial commit
|
2026-04-21 22:07:29 +08:00 |
|