首页
技术小册
AIGC
面试刷题
技术文章
MAGENTO
云计算
视频课程
源码下载
PDF书籍
「涨薪秘籍」
登录
注册
SwooleWorker介绍
SwooleWorker安装
SwooleWorker接口列表
Register详解
Gateway详解
Worker详解
安全重启
分布式布署
session处理
自定义命令
数据库
Redis数据库
HttpApi接口
开启SSL
与workerman对比
当前位置:
首页>>
技术小册>>
Swoole高性能框架-SwooleWorker
小册名称:Swoole高性能框架-SwooleWorker
SwooleWorker是基于swoole4开发的一款分布式长连接开发框架。常驻内存,协程,高性能高并发;分布式部署,横向扩容,使得能支持庞大的连接数;无感知安全重启,无缝升级代码;接口丰富,支持单个发送,分组发送,群发广播等接口。可广泛应用于云计算、物联网(IOT)、车联网、智能家居、网络游戏等领域 ```asp _____ _ __ __ _ / ____| | | \ \ / / | | ® | (_____ _____ ___ | | __\ \ /\ / /__ _ __| | _____ _ __ \___ \ \ /\ / / _ \ / _ \| |/ _ \ \/ \/ / _ \| '__| |/ / _ \ '__| ____) \ V V / (_) | (_) | | __/\ /\ / (_) | | | < __/ | |_____/ \_/\_/ \___/ \___/|_|\___| \/ \/ \___/|_| |_|\_\___|_| ================================================= SwooleWorker is a distributed long connection development framework based on Swoole. [HomePage] https://swoole.plus ================================================= Press [Ctrl+C] to exit, send 'help' to show help. > help **************************** HELP **************************** * cmd description... * help display help * exit exit cmd panel * clear clear screen * start [-d] start the service,'-d' daemonize mode * restart [-d] restart the service,'-d' daemonize mode * reload reload worker and task * stop [-f] stop the service,'-f' force stop * status displays the running status of the service **************************************************************** > ``` **系统架构** ![](/uploads/images/20230530/1fea3029d2c556009d592fe9ee831fbe.png) **接口列表** | 接口 | 参数 | 返回值 | |-----------------------|-----------------------------------------------------------------|----------| | sendToClient | string $client, string $message || | sendToUid | string $uid, string $message, array $without_client_list = [] || | sendToGroup | string $group, string $message, array $without_client_list = [] || | sendToAll | string $message, array $without_client_list = [] || | isOnline | string $client || | isUidOnline | string $uid | bool | | getClientListByGroup | string $group, string $prev_client = null | iterable | | getClientCount | int || | getClientCountByGroup | string $group | int | | getClientList | string $prev_client = null | iterable | | getClientListByUid | string $uid, string $prev_client = null | iterable | | getClientInfo | string $client, int $type = 255 | array | | getUidListByGroup | string $group, bool $unique = true | iterable | | getUidList | bool $unique = true | iterable | | getUidCount | float $unique_percent = null | int | | getGroupList | bool $unique = true | iterable | | getUidCountByGroup | string $group | int | | closeClient | string $client, bool $force = false || | bindUid | string $client, string $uid || | unBindUid | string $client || | joinGroup | string $client, string $group || | leaveGroup | string $client, string $group || | unGroup | string $group || | setSession | string $client, array $session || | updateSession | string $client, array $session || | deleteSession | string $client || | getSession | string $client | ?array |
下一篇:
SwooleWorker安装
该分类下的相关小册推荐:
PHP程序员面试笔试真题与解析
Laravel(10.x)从入门到精通(九)
Laravel(10.x)从入门到精通(三)
Yii2框架从入门到精通(上)
Magento中文全栈二次开发
Laravel(10.x)从入门到精通(十八)
Yii2框架从入门到精通(下)
Workerman高性能Web框架-Webman
PHP8入门与项目实战(4)
PHP8入门与项目实战(3)
Laravel(10.x)从入门到精通(十七)
PHP8入门与项目实战(7)