Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redis或者其他消息中间件起到的作用是什么? #8

Open
HelloHaiGG opened this issue Apr 26, 2020 · 4 comments
Open

redis或者其他消息中间件起到的作用是什么? #8

HelloHaiGG opened this issue Apr 26, 2020 · 4 comments

Comments

@HelloHaiGG
Copy link

为什么不在 logic 层直接 rpc connect发送消息呢,这是出于什么考虑,可否解答一下!

@LockGit
Copy link
Owner

LockGit commented Apr 26, 2020

队列:redis
方便演示使用redis,可以根据实际情况替换为kafka或者rabbitmq,这里承载着一个broken的角色

缓存:redis
存储用户session,以及相关计数器,聊天室房间信息等

关于发送消息可以仔细看下流程图.

@nRookie
Copy link

nRookie commented Apr 11, 2022

借个楼,这个日志应该怎么查?
目前用docker logs 能看到一些日志,但是感觉有一些丢失。有别的方法吗?

@LockGit
Copy link
Owner

LockGit commented Apr 11, 2022

@nRookie docker logs 看的不是业务进程的日志,直接登录进入容器看就行,supervisor守护的进程,可以看下gochat/docker/prod/supervisord.d/*.ini 的配置,就知道日志输出到哪儿了

@nRookie
Copy link

nRookie commented Apr 11, 2022

谢谢回复, 已经看到了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants