PHP 异步框架:phpdaemon
jopen
10年前
phpdaemon 是 PHP 异步框架,使用 libevent 实现,它拥有很多特性。为应对高负载而设计。每一个worker可以处理上千个并发连接。
主要特性:
-
High performance
- Cheap context switches,
high concurrency - Low memory consumption
for each connection/request - EIO support (asynchronous file
system I/O)
- Cheap context switches,
-
Flexibility
- Built-in SSL/TLS support (client/server)
- TCP/UDP transparent support (client/server)
- Extensible nature (PSR-0 compliance)
- Well configurable
- Feature-rich
-
Core features
- Dynamic Multi-Process Manager
- Chroot, nice, jail for worker processes
- Automatic graceful reloading user's
scripts when it's updated - Graceful worker shutdown (and
re-spawn if necessary) by the following
limits: memory, query counter, idle time