NAME
Beekeeper::Service::Sinkhole::Worker - Handle unserviced job queues
VERSION
Version 0.01
DESCRIPTION
In the case of all workers of a given service being down, all requests sent to the service will timeout as no one is serving them. This may cause a serious disruption in the application, as any other service depending of the broken one will halt too for the duration of the timeout.
In order to mitigate this situation all Sinkhole workers will be notified by the Supervisor when unserviced queues are detected, making these to respond immediately to all requests with an error response. Then callers will quickly receive an error response instead of timing out.
As soon as a worker of the downed service becomes online again the Sinkhole workers will stop rejecting requests.
A Sinkhole worker is created automatically in every worker pool, and it can handle around 500 req/s. Extra workers can simply be declared into config file.
AUTHOR
José Micó, jose.mico@gmail.com
COPYRIGHT AND LICENSE
Copyright 2015 José Micó.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language itself.
This software is distributed in the hope that it will be useful, but it is provided “as is” and without any express or implied warranties. For details, see the full text of the license in the file LICENSE.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 148:
Non-ASCII character seen before =encoding in 'José'. Assuming UTF-8