top

Package mogul provides distributed locking and task handling via mongodb.

Using mongo documents we can synchronize and do work over a number of nodes. The typical usecase would be to run a cron job or scheduler on all nodes and then perform task creation on a single node using a lock. These tasks can then be efficiently executed on all nodes that are alive.

Imports 2 package(s)

  1. gopkg.in/mgo.v2
  2. gopkg.in/mgo.v2/bson

Test imports 1 package(s)

  1. github.com/pascaldekloe/goe/verify