arc.queues.subscribe

Subscribe a function to a queue

An example, publish-log queue handler:

let arc = require('@architect/functions')

function log(payload, callback) {
  console.log(JSON.stringify(payload, null, 2))
  callback()
}

exports.handler = arc.queues.subscribe(log)