Infinite loop pattern to poll for a queue in a REST server app
This is a pretty common pattern. I''ve written that code a bunch of times. Two things: I wouldn''t run this in the same process as the rest api. Just deploy two Node apps; one to poll the