ducer;
use 5.006;
use strict;
use warnings;
use base 'Amazon::SQS::ProducerConsumer::Base';
use JSON::XS;
use constant MAX_RETRIES => 3;
=head1 NAME
Amazon::SQS::Producer - Publish messages to an
a consumer if this is the first message this Publisher has published. The message body will be a JSON representaton of the method's argument hash. If the first argument is a reference to a hash it wi
t;
my $old_data = shift if ref $_[0];
my $data = { %$old_data, @_ };
my $encoded_data = encode_json $data;
say "Queueing message: $encoded_data" if $data->{_debug};
return if $data->{_test};
m