cevincheung
V2EX  ›  PHP

对于 workerman、swoole 之类的用 php 做服务端 socket 长连接服务有什么忠告吗?

  •  
  •   cevincheung · Aug 19, 2016 · 3357 views
    This topic created in 3557 days ago, the information mentioned may be changed or developed.
    手机码字不容易,全在标题了
    3 replies    2016-08-28 00:00:58 +08:00
    ijustdo
        1
    ijustdo  
       Aug 24, 2016
    主要看你们运维吧 如果 linux 肯定改内核参数 比喻 timewait 等的参数 连接端口复用
    再牛的 就是 前面 nginx 只能的做 tcp udp 的反向代理 后面多台负载均衡
    cevincheung
        2
    cevincheung  
    OP
       Aug 24, 2016
    @ijustdo
    现在用 haproxy 做负载,后面多台 swoole
    zcg121314
        3
    zcg121314  
       Aug 28, 2016
    @cevincheung 狗逼 英晨 nodo.js ZeroMQ 很简单 socket
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3073 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 13:15 · PVG 21:15 · LAX 06:15 · JFK 09:15
    ♥ Do have faith in what you're doing.