Configuring an Events Queue

Implementation is already present in demoshop and all code samples can be found there.

To implement an events queue:

1.

Install spryker/queue version at least 1.*. and spryker/rabbit-mq

2.

Create the configuration for RabbitMQ in \Pyz\Client\RabbitMq\RabbitMqDependencyProvideras follows:

3.

In \Pyz\Client\Queue\QueueDependencyProvider add the RabbitMQ adapter:

4.

In \Pyz\Zed\Queue\QueueConfig add receiver options for the event queue:

5.

In \Pyz\Zed\Queue\QueueDependencyProvider add a plugin(consumer) to process messages/events.

6.

In your application’s configuration file ‘./config/Shared/config_default.php’ or environment specific make sure you have this configuration:

Related Topics Link IconRelated Topics