stack-encode on steroids (using a rabbitmq worker queue)