Palmetto Flow Queue Service
This PalmettoFlow service is a simple queue, you post documents in and you get documents out by queue
name.
Usage
Environment Variables
# you can set it to use a pouchdb server instead by just giving it a nameexport COUCHSVR = 'http://localhost:5984'# database name prefix to support multiple queue servicesexport PREFIX = 'app_'# JWT_SECRETexport JWT_SECRET = 'secret here'
Register in Service Container
var ee =var svc =
Usage in Client - Post Task to Queue
var newEvent = newEventvar ee =var ne =eeee
Usage in Client - Get Tasks from Queue
var newEvent = newEventvar ee =var ne =eeee## Why ClosuresThe module is designed to be as static as Javascript allowsfollowing a functional or lambda programming paradigm If you want to learn moreabout this pattern of development and why this pattern was chosen above othermore traditional javascript approaches please read the following excellent articlehttp://howtonode.org/why-use-closureIf you would like to help maintain this project and/or if you have any questions or commentsabout the library's design or implementation I'd love to hear from you