andrew-thox / pb-journalist

Responsible for scraping sites
Eclipse Public License 1.0
0 stars 0 forks source link

Determine what to do in the event that the queue is down? #2

Open andrew-thox opened 8 years ago

andrew-thox commented 8 years ago

Should this service assume the queue is running or should it attempt to start it?

What error handling is going to happen if it cannot access any queue at all?

andrew-thox commented 8 years ago

The queue images/servers should set up the queues as part of their own provisioning. I think this is the only sensible option since potentially you could have a cluster of queue servers.

andrew-thox commented 8 years ago

"Declaring a queue will cause it to be created if it does not already exist. The declaration will have no effect if the queue does already exist and its attributes are the same as those in the declaration. When the existing queue attributes are not the same as those in the declaration a channel-level exception is raised." -- Langohr Docs