Dancer2::Plugin::Queue::IronMQ - Dancer2::Plugin::Queue backend using IronMQ
version 0.002
# in config.yml plugins: Queue: default: class: IronMQ options: config: <iron json cfg file> queue: <queue-name> timeout: <seconds> wait: <seconds> # in Dancer2 app use Dancer2::Plugin::Queue; get '/' => sub { queue->add_msg( $data ); };
This module implements a Dancer2::Plugin::Queue using IO::Iron::IronMQ::Client.
See documentation for Dancer2::Plugin::Queue.
IronMQ uses a JSON config file to hold the project_id and token, and other config items if necessary. By default iron.json. These config items can also be written individually under connection_options. Must be supplied.
Name of the queue. Must be supplied.
After timeout (in seconds), item will be placed back onto queue. You must delete the message from the queue to ensure it does not go back onto the queue. If not set, value from queue is used. Default is 60 seconds, minimum is 30 seconds, and maximum is 86,400 seconds (24 hours).
Time to long poll for messages, in seconds. Max is 30 seconds. Default 0.
My thanks to https://metacpan.org/author/DAGOLDEN who's Dancer2::Plugin::Queue::MongoDB I used as an example when building.
Dancer2::Plugin::Queue
IO::Iron
IO::Iron::Applications
Please report any bugs or feature requests through the issue tracker at https://github.com/mikkoi/dancer2-plugin-queue-ironmq/issues. You will be notified automatically of any progress on your issue.
This is open source software. The code repository is available for public review and contribution under the terms of the license.
https://github.com/mikkoi/dancer2-plugin-queue-ironmq
git clone https://github.com/mikkoi/dancer2-plugin-queue-ironmq.git
Mikko Koivunalho <mikkoi@cpan.org>
Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
This software is Copyright (c) 2017 by Mikko Koivunalho.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
1 POD Error
The following errors were encountered while parsing the POD:
alternative text 'https://metacpan.org/author/DAGOLDEN' contains non-escaped | or /
To install Dancer2::Plugin::Queue::IronMQ, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer2::Plugin::Queue::IronMQ
CPAN shell
perl -MCPAN -e shell install Dancer2::Plugin::Queue::IronMQ
For more information on module installation, please visit the detailed CPAN module installation guide.