javaperlrabbitmqmessage-queuemom

RabbitMQ and Application Decoupling


I need to setup RabbitMQ in an attempt to redesign our architecture using asynchronous messaging.

Existing Application Flow:

All these are synchronous and time consuming and we need to convert this to asynchronous messaging communication.

Now, I am planning to break this down to the following different components but not sure if this would work with RabbitMQ:

Application Breakdown:

This way, the output would be available in the database and the asynchronous flow would be completed.

  1. Is is possible to separate the applications this way compatible to RabbitMQ?
  2. Are there any better ways to do this?
  3. Please suggest some framework components for RabbitMQ and Perl

Appreciate your inputs with this.


Solution

  • 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.

    In order to use RabbitMQ, I'll recommend you the AnyEvent::RabbitMQ CPAN module. As the documentation establishes, You can use AnyEvent::RabbitMQ to: