// todo
First, clone the project :
git clone https://github.com/Gloubster/Server.git gloubster-server
Gloubster Server relies on many components (Bower, composer, curl, etc...), to init this, use the easy command :
cd gloubster-server
./init.sh
Gloubster server listens for incoming job messages. These jobs are queued in a RabbitMQ server. Once processed by a worker, the message is sent back to a log queue. Log queue is processed to store processed data information in a Redis server for reporting purpose. A web application is available, providing realtime monitoring through websockets.
You will find a configuration sample in config/config.sample.json
.
// todo
// todo
// todo
// todo
// todo
// todo
GloubsterServer is a Dependency Container itself and embeds Evenement as event-dispatcher.
You can easily hack it :
use Gloubster\Server\GloubsterServer;
$gloubster = new GloubsterServer::create($loop, $conf, $logger);
$gloubster['dispatcher']->on('start', function () {
echo "Gloubster server has start\n";
});
Be free, but remember you must be non-blocking, bro !
Available events are :
- start : triggered when the run method is called.
- booted : triggered once all service (stomp, redis, websockets) are connected and fine.
- stop : triggered when the stop method is called.
- error : triggered whenever an error occured.
- stomp-connected : triggered once stomp client is connected.
- redis-connected : triggered once redis client is connected.
- Add priority
- Real web application
Released under the MIT license.