Add nsq middleware, implement saveResource