2017 © Pedro Peláez
 

library laravel-mongodb-queue

Thread-safe MongoDB database queue implementation for Laravel

image

chefsplate/laravel-mongodb-queue

Thread-safe MongoDB database queue implementation for Laravel

  • Saturday, July 14, 2018
  • by davidchchang
  • Repository
  • 3 Watchers
  • 5 Stars
  • 3,352 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 10 Versions
  • 6 % Grown

The README.md

Laravel 5 MongoDB Queue Driver

Thread-safe MongoDB database queue implementation for Laravel., (*1)

This driver is compatible with jensseger's laravel-mongodb library, however we use the mongodb client instead so we can leverage findAndModify updates with write concerns and $isolated operations., (*2)

Requirements

  • PHP 5.4+
  • mongodb-1.1.x PHP driver (or higher)
  • Mongo 3.x+ (see note below*)
  • Laravel 5.3 (for Laravel 5.1 or 5.2 support, please use the 5.1 branch)
  • You may also leverage laravel-mongodb in your project

*Note: Although concurrency and locking have been implemented since Mongo 2.2, the locking is done at the database level, which makes it highly non-performant. Since Mongo 3.0, collection-level and even document-level locking has been added. Future updates may leverage bulk updates which have been added in Mongo 3.2, which make it the ideal minimum version to install., (*3)

For more details on driver compatibility, please see the MongoDB ecosystem documentation., (*4)

Install

Require the latest version of this package with Composer:, (*5)

composer require chefsplate/laravel-mongodb-queue:"^1.0.0"

Add the Service Provider to the providers array in config/app.php:, (*6)

ChefsPlate\Queue\MongoDBServiceProvider::class,

You should now be able to use the mongodb driver in config/queue.php. (Use the same config as for the database, but use mongodb as the driver.), (*7)

'default' => 'mongodb',

'connections' => array(
    ...
    'mongodb' => array(
        'driver' => 'mongodb',
        'table' => 'jobs',
        'queue' => 'default',
        'expire' => 60,
    ),
    ...
}

Note: Mongo will automatically create the jobs collection. No database migration is needed., (*8)

Please ensure your config/database.php configuration for mongodb includes a DSN. This is required by our driver:, (*9)

'mongodb' => array(
    'driver'   => 'mongodb',
    'dsn'      => 'mongodb://127.0.0.1:27017',
    'database' => 'database_name'
),

The format for the DSN is: mongodb://[username:password@]host1[:port1][,host2[:port2:],...]/db, (*10)

For more info see:, (*11)

The Versions

14/07 2018

dev-master

9999999-dev https://github.com/chefsplate/laravel-mongodb-queue

Thread-safe MongoDB database queue implementation for Laravel

  Sources   Download

MIT

The Requires

 

by David Chang

mongodb database laravel queue mongo

14/07 2018

5.4.x-dev

5.4.9999999.9999999-dev https://github.com/chefsplate/laravel-mongodb-queue

Thread-safe MongoDB database queue implementation for Laravel

  Sources   Download

MIT

The Requires

 

by David Chang

mongodb database laravel queue mongo

08/03 2017

5.1.x-dev

5.1.9999999.9999999-dev https://github.com/chefsplate/laravel-mongodb-queue

Thread-safe MongoDB database queue implementation for Laravel

  Sources   Download

MIT

The Requires

 

by David Chang

mongodb database laravel queue mongo

08/03 2017

5.3.x-dev

5.3.9999999.9999999-dev https://github.com/chefsplate/laravel-mongodb-queue

Thread-safe MongoDB database queue implementation for Laravel

  Sources   Download

MIT

The Requires

 

by David Chang

mongodb database laravel queue mongo

15/02 2017

1.0.3

1.0.3.0 https://github.com/chefsplate/laravel-mongodb-queue

Thread-safe MongoDB database queue implementation for Laravel

  Sources   Download

MIT

The Requires

 

by David Chang

mongodb database laravel queue mongo

15/02 2017

1.0.2

1.0.2.0 https://github.com/chefsplate/laravel-mongodb-queue

Thread-safe MongoDB database queue implementation for Laravel

  Sources   Download

MIT

The Requires

 

by David Chang

mongodb database laravel queue mongo

15/02 2017

1.0.1

1.0.1.0 https://github.com/chefsplate/laravel-mongodb-queue

Thread-safe MongoDB database queue implementation for Laravel

  Sources   Download

MIT

The Requires

 

by David Chang

mongodb database laravel queue mongo

10/02 2017

1.0.0

1.0.0.0 https://github.com/chefsplate/laravel-mongodb-queue

Thread-safe MongoDB database queue implementation for Laravel

  Sources   Download

MIT

The Requires

 

by David Chang

mongodb database laravel queue mongo

19/01 2017
17/03 2016