<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          SwooleWorker分布式長連接開發(fā)框架

          聯合創(chuàng)作 · 2023-09-29 12:12

          SwooleWorker是基于swoole4開發(fā)的一款分布式長連接開發(fā)框架。

          常駐內存,協程,分布式部署,橫向擴容,無感知安全重啟,高性能高并發(fā),SwooleWorker可以廣泛應用于云計算、物聯網(IOT)、車聯網、智能家居、網絡游戲、互聯網+、移動通信等領域。使用SwooleWorker可以使企業(yè) IT 研發(fā)團隊的效率大大提升,更加專注于開發(fā)創(chuàng)新產品。

            _____                    _   __          __        _
           / ____|                  | |  \ \        / /       | |           ?
          | (_____      _____   ___ | | __\ \  /\  / /__  _ __| | _____ _ __
           \___ \ \ /\ / / _ \ / _ \| |/ _ \ \/  \/ / _ \| '__| |/ / _ \ '__|
           ____) \ V  V / (_) | (_) | |  __/\  /\  / (_) | |  |   <  __/ |
          |_____/ \_/\_/ \___/ \___/|_|\___| \/  \/ \___/|_|  |_|\_\___|_|
          
          =================================================
          SwooleWorker is a distributed long connection
          development framework based on Swoole4.
          
          [Github] https://github.com/xielei/swoole-worker
          =================================================
          
          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
          ****************************************************************
          > 

          【Github】 【官方網站】

          系統架構

          架構圖

          基本接口

          • sendToClient(string client,stringclient,stringmessage)
          • sendToUid(string uid,stringuid,stringmessage)
          • sendToGroup(string group,stringgroup,stringmessage, array $without_client_list = [])
          • sendToAll(string message,arraymessage,arraywithout_client_list = [])
          • isOnline(string $client)
          • isUidOnline(string $uid): bool
          • getClientListByGroup(string group,stringgroup,stringprev_client = null): iterable
          • getClientCount(): int
          • getClientCountByGroup(string $group): int
          • getClientList(string $prev_client = null): iterable
          • getClientListByUid(string uid,stringuid,stringprev_client = null): iterable
          • getClientInfo(string client,intclient,inttype = 255): array
          • getUidListByGroup(string group,boolgroup,boolunique = 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,boolclient,boolforce = false)
          • bindUid(string client,stringclient,stringuid)
          • unBindUid(string $client)
          • joinGroup(string client,stringclient,stringgroup)
          • leaveGroup(string client,stringclient,stringgroup)
          • unGroup(string $group)
          • setSession(string client,arrayclient,arraysession)
          • updateSession(string client,arrayclient,arraysession)
          • deleteSession(string $client)
          • getSession(string $client): ?array
          • sendToAddressListAndRecv(array items,floatitems,floattimeout = 1): array
          • sendToAddressAndRecv(array address,stringaddress,stringbuffer, float $timeout = 1): string
          • sendToAddress(array address,stringaddress,stringbuffer, $timeout = 1)

          系統特色

          • 分布式部署,橫向擴容
          • 代碼更新無縫重啟,用戶無感知,數據無差錯
          • 協程,常駐內存,高性能

          安裝

          推薦composer方式安裝

          composer require xielei/swoole-worker
          瀏覽 23
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  深爱激情综合网 | 综合色图欧美视频 | 青青草A∨在线视频免费 | 日韩欧美国产精品综合嫩V | 做爱黄色视频网站 |