PHPackages                             halaei/bredis - 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. [Caching](/categories/caching)
4. /
5. halaei/bredis

Abandoned → [laravel/framework](/?search=laravel%2Fframework)Library[Caching](/categories/caching)

halaei/bredis
=============

Long polling (blocking pop) for Redis queue driver in Laravel

3.0.0(8y ago)24.2k[2 issues](https://github.com/halaei/bredis/issues)MITPHPPHP &gt;=7.0.0

Since Sep 20Pushed 8y ago1 watchersCompare

[ Source](https://github.com/halaei/bredis)[ Packagist](https://packagist.org/packages/halaei/bredis)[ RSS](/packages/halaei-bredis/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (5)Versions (4)Used By (0)

bredis queue driver for Laravel
===============================

[](#bredis-queue-driver-for-laravel)

[![Build Status](https://camo.githubusercontent.com/e0bc98213415827d7a0472743d1bdce41a2cfda27cb2b8fff61953322fb29c47/68747470733a2f2f7472617669732d63692e6f72672f68616c6165692f6272656469732e737667)](https://travis-ci.org/halaei/bredis)[![Latest Stable Version](https://camo.githubusercontent.com/2bfb9e8239f82998aa5d52b1acb195d5cf7337113e77fc0e54d7a512f2f6e073/68747470733a2f2f706f7365722e707567782e6f72672f68616c6165692f6272656469732f762f737461626c65)](https://packagist.org/packages/halaei/bredis)[![Total Downloads](https://camo.githubusercontent.com/37be2c774bbc3c5e525c9dfb2e7d785c57f7d3c9e686d1d30aa5ec0a725f75c2/68747470733a2f2f706f7365722e707567782e6f72672f68616c6165692f6272656469732f646f776e6c6f616473)](https://packagist.org/packages/halaei/bredis)[![Latest Unstable Version](https://camo.githubusercontent.com/90c1d0cf66ba9eac18d855a72d180e627cd4ea75f1bbc764203b4f23dc1586bf/68747470733a2f2f706f7365722e707567782e6f72672f68616c6165692f6272656469732f762f756e737461626c65)](https://packagist.org/packages/halaei/bredis)[![License](https://camo.githubusercontent.com/98603031f419cd4a29d13d9851e716de2d8a3a8d689f6b9ce7f37c50764692f8/68747470733a2f2f706f7365722e707567782e6f72672f68616c6165692f6272656469732f6c6963656e7365)](https://packagist.org/packages/halaei/bredis)

When do you need bredis?
------------------------

[](#when-do-you-need-bredis)

You need `bredis` when all of these are applied:

1. **You don't want your jobs to be delayed because your workers are currently sleeping.**
2. You don't want to run `queue:work --sleep=0` on current Redis queue driver because it will devour your CPU when there is no job.

Hence, you need your workers to idle-wait for a job and process them just when they arrive, with nearly no delay. With `bredis` you can happily run `queue:work --sleep=0` without worrying about busy waiting and CPU overload.

Installation
------------

[](#installation)

### 1. Install the package via compioser

[](#1-install-the-package-via-compioser)

```
composer require halaei/bredis

```

### 2. Add the service provider to your config/app.php

[](#2-add-the-service-provider-to-your-configappphp)

```
Halaei\BRedis\BlockingRedisServiceProvider::class

```

### 3. Add bredis connections to app/queue.php

[](#3-add-bredis-connections-to-appqueuephp)

```
'bredis' => [
    'driver'      => 'bredis',
    'connection'  => 'default',
    'queue'       => 'default',
    'retry_after' => 90,
    'timeout'     => 10, //Maximum seconds to wait for a job
],

```

Please note that if you need to increase 'timeout' in the config array above, you should increase 'retry\_after' in the array as well as --timeout in your `queue:work` commands.

**Warning**: bredis queue workers don't bother handling jobs that are delayed or reserved. So when using bredis workers, you have to have at least one redis worker as well.

**Note**: bredis queue driver is 100% compatible with redis driver. In other words, you may push the jobs using redis driver and pop them using bredis, or vice versa.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

Every ~184 days

Total

3

Last Release

3156d ago

Major Versions

1.0.0 → 2.0.02017-02-08

2.0.0 → 3.0.02017-09-23

PHP version history (2 changes)1.0.0PHP &gt;=5.6.4

3.0.0PHP &gt;=7.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/2dd52c170d3916b92b3cc7dd33f3cc813976395bb1e8c980130d9fdf7977d1eb?d=identicon)[halaei](/maintainers/halaei)

---

Top Contributors

[![halaei](https://avatars.githubusercontent.com/u/7089140?v=4)](https://github.com/halaei "halaei (14 commits)")

---

Tags

blocking-poplaravelredisredis-queuelaravelredisqueuelong-pollingBlocking pop

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/halaei-bredis/health.svg)

```
[![Health](https://phpackages.com/badges/halaei-bredis/health.svg)](https://phpackages.com/packages/halaei-bredis)
```

###  Alternatives

[yangusik/laravel-balanced-queue

Laravel queue management with load balancing between partitions (user groups)

786.4k](/packages/yangusik-laravel-balanced-queue)[monospice/laravel-redis-sentinel-drivers

Redis Sentinel integration for Laravel and Lumen.

103830.5k](/packages/monospice-laravel-redis-sentinel-drivers)[namoshek/laravel-redis-sentinel

An extension of Laravels Redis driver which supports connecting to a Redis master through Redis Sentinel.

38679.0k](/packages/namoshek-laravel-redis-sentinel)[pdffiller/qless-php

PHP Bindings for qless

29113.2k1](/packages/pdffiller-qless-php)[kevindees/laravel-redis-queue

Redis queue managment for laravel.

1634.1k](/packages/kevindees-laravel-redis-queue)[ginnerpeace/laravel-redis-lock

Simple redis distributed locks for Laravel.

15114.4k](/packages/ginnerpeace-laravel-redis-lock)

PHPackages © 2026

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