承接 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.88k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-02-24