 <p>Yes, you can do it that way. If it's not a hard work, I'll include the database load on the Perl step. This probably avoids to handle an intermediate file, but I don't know if it's a viable task on your project.</p> <p>In order to use RabbitMQ, I'll recommend you the <a href="https://metacpan.org/pod/AnyEvent::RabbitMQ" rel="nofollow">AnyEvent::RabbitMQ</a> CPAN module. As the documentation establishes, You can use AnyEvent::RabbitMQ to:</p> <ul> <li>Declare and delete exchanges</li> <li>Declare, delete, bind and unbind queues</li> <li>Set QoS and confirm mode</li> <li>Publish, consume, get, ack, recover and reject messages</li> <li>Select, commit and rollback transactions</li> </ul>