dev-master
9999999-dev https://github.com/Ocramius/OcraHopHopVery fast worker-based HTTP Request dispatching for ZF2 that re-uses bootstrapped applications
MIT
The Requires
Wallogit.com
2017 © Pedro Peláez
Very fast worker-based HTTP Request dispatching for ZF2 that re-uses bootstrapped applications
OcraHopHop is a project aimed at reducing latency and resources used by a ZF2 Application while dispatching an HTTP Request., (*1)
The recommended way to install ocramius/ocra-hop-hop is through
composer:, (*2)
{
"require": {
"ocramius/ocra-hop-hop": "dev-master@dev"
}
}
The concept behind OCraHopHop is simple, and can be summarized in following pseudo code:, (*3)
init_autoload();
init_config();
// ...
init_application();
while ($request = get_http_request()) {
$application->serve($request);
}
The idea is to avoid initialization logic by re-using resources across multiple requests., (*4)
PHP was thought for share-nothing architectures, but for greater and more complex applications, such an approach is necessary., (*5)
If you already know FastCGI, this is what it is all about., (*6)
public/index.php with the examples/zf2-server.php
that you can find in OcraHopHop.examples/zf2-worker.php to your public/ dircd to your public/ dir and run
php zf2-worker.php
siege or ab -k against your ZF applicationVery fast worker-based HTTP Request dispatching for ZF2 that re-uses bootstrapped applications
MIT