Net::Thumper

A rudimentary Pure Perl AMQP client
Download

Net::Thumper Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Sam Crawley
  • Publisher web site:
  • http://search.cpan.org/~mutant/

Net::Thumper Tags


Net::Thumper Description

Net::Thumper is a rudimentary AMQP client written in Pure Perl. It has been tested with recent versions of RabbitMQ.There are a few limitations:* No concept of 'channels' is exposed, so only one logical channel is possible* Some parts of the AMQP spec not exposed* API isn't the cleanest is some places - could be tidied upWhile this module mostly works for my purpose, it might be restrictive in some places. Still, the fundamentals are reasonably solid (the low-level communication) so it could probably be fairly easily modified for other purposes.SYNOPSIS my $amqp = Net::Thumper->new( debug => 0, server => 'rabbitmq-host', amqp_definition => 'amqp0-8.xml', ); # Connect $amqp->connect(); $amqp->open_channel(); $amqp->declare_queue('foo'); # Publish $amqp->publish('', 'foo', $payload, {}, { reply_to => 'foo', correlation_id => '1' }); # Get my $msg = $amqp->get('foo'); # Consume my $consumer_tag = $amqp->consume('foo'); my $msg = $amqp->get('foo'); $amqp->cancel($consumer_tag); # Disconnect $amqp->disconnect();Product's homepage


Net::Thumper Related Software