kpacha/reactive-silex
Composer 安装命令:
composer require kpacha/reactive-silex
包简介
Mixup silex and react
README 文档
README
Mixup silex and react (with a little help from espresso)
#Instal
The recommended way to install kpacha/reactive-silex is through composer.
{
"require": {
"kpacha/reactive-silex": "~0.1.0"
}
}
#Usage
Check out the bin/reactive.php example and run it with
$ php bin/reactive.php
There is a built-in console-based script
$ bin/run reactive --help
Usage:
reactive [port]
Arguments:
port (default: 1337)
Options:
--help (-h) Display this help message.
--quiet (-q) Do not output any message.
--verbose (-v|vv|vvv) Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
--version (-V) Display this application version.
--ansi Force ANSI output.
--no-ansi Disable ANSI output.
--no-interaction (-n) Do not ask any interactive question.
$ bin/run reactive -vv 8080
Server running at http://127.0.0.1:8080
Memory: 1280 KiB
Memory: 1280 KiB
#Scalability
React launches a single-process share-nothing server, so you can instance several stacks in a single machine, depending on the number of avilable cores, before scale-out adding more hardware. The cpu and memory consumption will remain almost lineal. Balance your load between your stacks and everything will be run like a charm!
Also, remember to bind every stack to a different port or you will face some nice port collision messages!
#Documentation
#TODO
- improve error handling
- improve request & response parsing
统计信息
- 总下载量: 56
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-02-08