PHPackages                             ankurk91/laravel-dedupe-queue - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Queues &amp; Workers](/categories/queues)
4. /
5. ankurk91/laravel-dedupe-queue

AbandonedArchivedLibrary[Queues &amp; Workers](/categories/queues)

ankurk91/laravel-dedupe-queue
=============================

Prevent duplicate jobs from running in Laravel php framework

1.0.0(3y ago)011.4k↓38.6%1MITPHPPHP ^8.1

Since Feb 24Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/ankurk91/laravel-dedupe-queue)[ Packagist](https://packagist.org/packages/ankurk91/laravel-dedupe-queue)[ Docs](https://github.com/ankurk91/laravel-dedupe-queue)[ RSS](/packages/ankurk91-laravel-dedupe-queue/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (6)Versions (3)Used By (0)

Deduplicate Queues for Laravel
==============================

[](#deduplicate-queues-for-laravel)

[![Packagist](https://camo.githubusercontent.com/3372c3e8b929eaab8496169bf936296286b77e899c234f8a977797b776d08b0c/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f616e6b75726b39312f6c61726176656c2d6465647570652d7175657565)](https://packagist.org/packages/ankurk91/laravel-dedupe-queue)[![GitHub-tag](https://camo.githubusercontent.com/bd5412522f94c76b3d3e1e7a2f506794829f95bed00bd1e642ceb4a87a75730c/68747470733a2f2f62616467656e2e6e65742f6769746875622f7461672f616e6b75726b39312f6c61726176656c2d6465647570652d7175657565)](https://github.com/ankurk91/laravel-dedupe-queue/tags)[![License](https://camo.githubusercontent.com/82428f107cb8926872f70a501516d17f940d9e1b06e05138077f20a85e7f3c67/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f6c6963656e73652f616e6b75726b39312f6c61726176656c2d6465647570652d7175657565)](LICENSE.txt)[![Downloads](https://camo.githubusercontent.com/af4ba183c343e7b27d5c2f195f266eab724bb2a63f74eb171a84a1d7862054d0/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f64742f616e6b75726b39312f6c61726176656c2d6465647570652d7175657565)](https://packagist.org/packages/ankurk91/laravel-dedupe-queue/stats)[![GH-Actions](https://github.com/ankurk91/laravel-dedupe-queue/workflows/tests/badge.svg)](https://github.com/ankurk91/laravel-dedupe-queue/actions)[![codecov](https://camo.githubusercontent.com/7863bf89f01fe9e224f1c58d531c424585f6d758103edcfcf4ac94a188996b4a/68747470733a2f2f636f6465636f762e696f2f67682f616e6b75726b39312f6c61726176656c2d6465647570652d71756575652f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/ankurk91/laravel-dedupe-queue)

Prevent duplicate jobs in Laravel php framework.

### Annoucement

[](#annoucement)

📣 Laravel finally shipped with this feature in v12.27.0, [read more](https://laravel.com/docs/12.x/queues#sqs-fifo-and-fair-queues)

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

Why and How?
------------

[](#why-and-how)

Laravel does not prevent duplicate jobs in AWS [SQS Standard](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/standard-queues.html)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
------------

[](#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
-----

[](#usage)

Install and forget it.

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

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

### Testing

[](#testing)

```
composer test
```

### Security

[](#security)

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

### License

[](#license)

This package is licensed under [MIT License](https://opensource.org/licenses/MIT).

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance42

Moderate activity, may be stable

Popularity25

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1180d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/815ba007834f14f329d427f20917e32e7187fa0950b437af8110c64b03345e08?d=identicon)[ankurk91](/maintainers/ankurk91)

---

Top Contributors

[![ankurk91](https://avatars.githubusercontent.com/u/6111524?v=4)](https://github.com/ankurk91 "ankurk91 (3 commits)")

---

Tags

deduplicationlaravelqueuesqslaraveljobsqsuniqueidempotentdeduplication

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ankurk91-laravel-dedupe-queue/health.svg)

```
[![Health](https://phpackages.com/badges/ankurk91-laravel-dedupe-queue/health.svg)](https://phpackages.com/packages/ankurk91-laravel-dedupe-queue)
```

###  Alternatives

[dusterio/laravel-aws-worker

Run Laravel (or Lumen) tasks and queue listeners inside of AWS Elastic Beanstalk workers

3105.7M](/packages/dusterio-laravel-aws-worker)[dusterio/laravel-plain-sqs

Custom SQS connector for Laravel that supports custom format JSON

1352.7M1](/packages/dusterio-laravel-plain-sqs)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

3786.5k](/packages/harris21-laravel-fuse)[maqe/laravel-sqs-fifo

Laravel package that enables support for SQS FIFO Queue

15137.2k](/packages/maqe-laravel-sqs-fifo)[pmatseykanets/artisan-beans

Easily manage your Beanstalkd job queues right from the Laravel artisan command

4482.1k](/packages/pmatseykanets-artisan-beans)[shaffe/laravel-mail-log-channel

A package to support logging via email in Laravel

1286.2k](/packages/shaffe-laravel-mail-log-channel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
