Skip to content

Manual and configured queues use the tripod queue namespaces

Compare
Choose a tag to compare
@rsinger rsinger released this 24 Jun 15:45
· 246 commits to master since this release

The process queue allows you to specify queues for composite specfication (views, tables, search) and also set the queue name via Tripod instantiation. That being said, the queue names still needed to contain the default Tripod queue names as a namespace to avoid environment collisions and whatnot, so this release does that.

For example, if a specification contains the ‘queue’ attribute ‘wibble’, it will be placed either in:

tripod::{$APP_ENV}::apply::wibble
or
tripod::apply::wibble

(depending whether or not $APP_ENV is set)

If you manually set a queue on Tripod init:

$tripod = new \Tripod\Mongo\Driver(‘CBD_foo’, ‘foo’, array(OP_ASYNC=>array(OP_QUEUE=>’foobar’));

operations would be sent to:

tripod::$APP_ENV::discover::foobar
tripod::$APP_ENV::apply::foobar

or

tripod::discover::foobar
tripod::apply::foobar

if $APP_ENV isn’t set.