refactor(rabbitmq): social.events 只承载通知
All checks were successful
CI/CD / Verify and Deploy (push) Successful in 3m23s

删除没有消费者的 SocialQueue 队列与 social.unfollow 路由键。SocialMQ 改登记 notification.social。

因此关注事件只走通知链路。social.events 不再是写库副本。

文档同步:解决方案、问题报告、写路径幂等、死信队列、项目设计。

验证:go vet ./... 通过,go test -count=1 ./... 全绿。
This commit is contained in:
2026-11-11 16:19:26 +08:00
parent 52213c1d83
commit af77a979ff
8 changed files with 249 additions and 340 deletions

View File

@@ -27,10 +27,7 @@ func TestTopologyConstants_WireNamesAreStable(t *testing.T) {
{"CommentDeleteRK", CommentDeleteRK, "comment.delete"},
{"SocialExchange", SocialExchange, "social.events"},
{"SocialQueue", SocialQueue, "social.events"},
{"SocialBindingKey", SocialBindingKey, "social.*"},
{"SocialFollowRK", SocialFollowRK, "social.follow"},
{"SocialUnfollowRK", SocialUnfollowRK, "social.unfollow"},
{"TimelineExchange", TimelineExchange, "video.timeline.events"},
{"TimelineQueue", TimelineQueue, "video.timeline.update.queue"},