spryker/message-broker
最新稳定版本:1.15.0
Composer 安装命令:
composer require spryker/message-broker
包简介
MessageBroker module
README 文档
README
Wraps message in a Symfony Envelope and sends it through the configured transport. Starts a worker processes for the defined channels.
Installation
composer require spryker/message-broker
Documentation
Configuration example (config_x.php)
This is just an example for testing purposes and the real configuration will be made via env variables.
$config[MessageBrokerAwsConstants::SNS_SENDER_CONFIG] = [ 'endpoint' => 'https://sns.eu-central-1.amazonaws.com', 'accessKeyId' => '...', 'accessKeySecret' => '...', 'region' => 'eu-central-1', 'topic' => 'arn:aws:sns:eu-central-1:...:message-broker-test', ]; $config[MessageBrokerAwsConstants::SQS_RECEIVER_CONFIG] = [ 'endpoint' => 'https://sqs.eu-central-1.amazonaws.com', 'account' => '...', 'accessKeyId' => '...', 'accessKeySecret' => '...', 'region' => 'eu-central-1', 'queue_name' => 'message-broker-test', 'poll_timeout' => 5, 'queueUrl' => 'https://sqs.eu-central-1.amazonaws.com/.../message-broker-test', 'auto_setup' => false, ]; $config[MessageBrokerAwsConstants::CHANNEL_TO_SENDER_CLIENT_MAP] = [ 'payment' => 'sns', ]; $config[MessageBrokerAwsConstants::CHANNEL_TO_RECEIVER_CLIENT_MAP] = [ 'payment' => 'sqs', ]; $config[MessageBrokerConstants::MESSAGE_TO_CHANNEL_MAP] = [ PaymentMethodTransfer::class => 'payment', ]; $config[MessageBrokerAwsConstants::MESSAGE_TO_CHANNEL_MAP] = [ PaymentMethodTransfer::class => 'payment', ];
统计信息
- 总下载量: 1.35M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 27
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2022-01-14