2017 © Pedro Peláez
 

library link-message-queue

Message Queue Module for prooph LINK

image

prooph/link-message-queue

Message Queue Module for prooph LINK

  • Sunday, May 10, 2015
  • by prooph
  • Repository
  • 2 Watchers
  • 2 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Prooph\Link\MessageQueue

Message Queue Module for prooph LINK, (*1)

Bernard Backend

This module provides a simple message queue for prooph LINK, so that workflow messages can be handled asynchronous. The message queue is implemented with the help of bernard and the corresponding message dispatcher implementation for prooph service bus. It uses the DoctrineDriver shipped with bernard and connects to the prooph.link.app.db database connection to manage the message queue., (*2)

Message Dispatcher

The module provides a ready to use message dispatcher that can be defined in a processing channel to push workflow messages on the queue send over the channel. A channel config using the message dispatcher would look something like this:, (*3)

return [
    'processing' => [
        'channels' => [
            'message_queue' => [
                'targets' => ['Acme\WorkflowMessageHandler'],
                'sender'  => 'a_node_name',
                 'message_dispatcher' => 'prooph.link.message_queue.producer' //ServiceManager alias of the message dispatcher
            ],
            //...
        ],
        //...
    ],
    //...
];

Workflow Processor Message Queue

The app-core module provides the possibility to activate a general message queue for all messages sent by the workflow processor. The message-queue module provides the required implementation. It defines the \Prooph\Link\Application\Definition::APP_SERVICE_WORKFLOW_PROCESSOR_MESSAGE_QUEUE as an alias of the prooph.link.message_queue.producer so the message dispatcher handles all messages sent by the workflow processor., (*4)

Message Consumer

To consume messages pushed to the queue a TickOccurred event needs to be published by the application. You can read about it in the app-core module documentation. The message consumer shipped with the message-queue module listens on this TickOccurred event, performs a bernard consumer tick (pulls the next pending message from the queue) and forwards the message to the processing workflow engine without further routing. The workflow engine is responsible for routing the message to its target., (*5)

Support

Contribution

You wanna help us? Great! We appreciate any help, be it on implementation level, UI improvements, testing, donation or simply trying out the system and give us feedback. Just leave us a note in our google group linked above and we can discuss further steps., (*6)

Thanks, your prooph team, (*7)

The Versions

10/05 2015

dev-master

9999999-dev https://github.com/prooph/link-message-queue

Message Queue Module for prooph LINK

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

zf2 module prooph prooph link

10/05 2015

v0.1.0

0.1.0.0 https://github.com/prooph/link-message-queue

Message Queue Module for prooph LINK

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

zf2 module prooph prooph link