brocode/module-queue-deduplication
Composer 安装命令:
composer require brocode/module-queue-deduplication
包简介
Magento Module to enhance queueing capabilities with a deduplication mechanism
README 文档
README
This module provides the possibility to configure topics to deduplicate messages if they haven't been processed yed
Goals of this module:
- avoid duplication of messages added to a Magento2 queue based on following suggestion for Java programs: https://colinchjava.github.io/2023-09-18/10-16-52-983540-rabbitmq-message-deduplication-in-java/
Non-Goals of this module:
- use the appropriate possibilities of an RabbitMQ plugin like https://github.com/noxdafox/rabbitmq-message-deduplication because
- this function should work with the MySQL queue implementation from Magento as well
- a separate plugin has to be installed with RabbitMQ and this is not always possible
Installation
composer require brocode/module-queue-deduplication
bin/magento module:enable BroCode_QueueDeDuplication
bin/magento setup:upgrade
Configuration
The according deduplicated queue/topic must be configured within the file etc/queue_deduplication.xml. This is a sample file that can be used:
<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:brocode:module:BroCode_QueueDeDuplication:/etc/queue_deduplication.xsd"> <topic name="brocode.image.convert"/> </config>
Nothing more needs to be configured.
Further Information
Current implementation is based on the configured Magento2-Caching strategy as it uses the internal caching mechanism for storing message ids that are scheduled within a queue. The current TTL is set to 1 day.
brocode/module-queue-deduplication 适用场景与选型建议
brocode/module-queue-deduplication 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 565 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 07 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 brocode/module-queue-deduplication 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 brocode/module-queue-deduplication 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 565
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 29
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-07-23