

关于原生workerman长连接中使用redis和mysql的问题!
source link: https://www.oschina.net/question/2767226_2321319
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

关于原生workerman长连接中使用redis和mysql的问题!
请教一下各位大神,因为第一次接触workerman,就是在做长连接的时候,当客户端发送过来消息的时候,我需要把数据实时储存在redis或者mysql当中,但是redis和mysql有时候会因为超时问题断开,然后在重连,这段时间断开和重连间隔当中如果有人再次发消息,那么就会造成消息延迟发送出去,因为在这里面处理了业务数据库,请问有什么好的办法解决吗? 以下是长连中操作的业务代码: (代码写的垃圾,请见谅)
Recommend
-
161
Workerman What is it Workerman is an asynchronous event-driven PHP framework with high performance to build fast and scalable network applications. Workerman supports HTTP, Websocket, SSL and other custom protocols. Workerman sup...
-
109
README.md Beanbun...
-
93
README.md MQTT Asynchronous MQTT client for PHP based on workerman. Installation composer require workerman/mqtt 文档
-
62
README.md PHPForker What is it A simple Multi-Process programming skeleton written in PHP and learned much from
-
93
README.md shadowsocks-php A php port of shadowsocks based on
-
19
本文只是概念性的知识,内容比较零散,下篇文章再进行代码分析。 Workerman是什么,他的优势在哪? 官方给的解释是高性能socket框架,我的个人理解是实现多进程的通讯的服务框架。 与传统的PHP框架不同,并非注...
-
9
Mix VegaVega 是一个用 PHP 编写的 CLI HTTP 网络框架,支持 Swoole、WorkerManOverviewVega 是 MixPHP V3+ 内置的最核心的组件 (可独立使用),参考golang
-
10
MixPHP V3 发布后,由于本身支持超多的执行模式,用户可能无从下手,这里先大体介绍一下:CLI-Server: 适合本机开发,零扩展依赖,Windows/MacOS 等...
-
11
Workerman What is it Workerman is an asynchronous event-driven PHP framework with high performance to build fast and scalable network applications. Workerman supports HTTP, Websocket, SSL and other custom protocols. Workerma...
-
4
🎈 开启多个 ws 服务失败# 正常情况下,如果你想开...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK