定制 ankurk91/laravel-dedupe-queue 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ankurk91/laravel-dedupe-queue

最新稳定版本:1.0.0

Composer 安装命令:

composer require ankurk91/laravel-dedupe-queue

包简介

Prevent duplicate jobs from running in Laravel php framework

README 文档

README

Packagist GitHub-tag License Downloads GH-Actions codecov

Prevent duplicate jobs in Laravel php framework.

Annoucement

???? Laravel finally shipped with this feature in v12.27.0, read more

Warning This package is in its early stage and may have some edge case left.

Why and How?

Laravel does not prevent duplicate jobs in AWS SQS Standard Queue.

This package takes advantage of the UUID assigned to each of the job pushed to the queue. The UUID of the job does not get changed if the same message appears again in SQS queue.

This package injects a global middleware to all Jobs, Mailables, Notifications and Listeners; which keep tracks of incoming jobs and discards any duplicates by checking the UUID.

Installation

You can install the package via composer:

composer require "ankurk91/laravel-dedupe-queue"

The service provider will automatically register itself.

Optionally, You can publish the config file by:

php artisan vendor:publish --provider="Ankurk91\DedupeQueue\DedupeQueueServiceProvider"

Note It is suggested to use Redis, Memcached or DynamoDB for faster Atomic Locks.

Usage

Install and forget it.

You can keep this package enabled even for sync queue connection.

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

composer test

Security

If you discover any security issue, please email pro.ankurk1[at]gmail[dot]com instead of using the issue tracker.

License

This package is licensed under MIT License.

统计信息

  • 总下载量: 10.87k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固