We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
启动的时候 启动多个worker进程,如果需要数据共享,是不是必须依赖第三方(redis、memcache之类的)? 比如我想做聊天服务器,有房间的概念,那么新来一个客户端,有可能落在其中一个worker进程中,当广播给某房间的所有用户时,没办法取到该房间的客户端列表
The text was updated successfully, but these errors were encountered:
进程间通讯的问题么~ 用另外的服务是最方便的了。消息队列比较适合聊天。
Sorry, something went wrong.
swoole_table应该可以用起来 另外可以考虑共享内存
用$server->connection_list会返回所有TCP连接,而不仅仅是当前worker进程的TCP连接。
No branches or pull requests
启动的时候 启动多个worker进程,如果需要数据共享,是不是必须依赖第三方(redis、memcache之类的)?
比如我想做聊天服务器,有房间的概念,那么新来一个客户端,有可能落在其中一个worker进程中,当广播给某房间的所有用户时,没办法取到该房间的客户端列表
The text was updated successfully, but these errors were encountered: