http://rubyamqp.info/articles/getting_started/
http://www.rabbitmq.com/download.html
- http://rubyamqp.info/
- https://github.com/ruby-amqp/amqp/
- http://rubyamqp.info/articles/patterns_and_use_cases/
https://github.com/ruby-amqp/bunny
- Prefetch
- Autodelete
- Queues store and forward messages to consumers. Queues are like mailboxes in SMTP.
- Messages are first delivered to exchanges which route messages to queues using rules called bindings.
- Queues and binding are declared by apps.
- Name
- Durability
- Whether the queue is auto-deleted when no longer used
- Other metadata (sometimes called X-arguments)
- Queues contain several segments separated by a dot, like URI path segments and /
- Before use, queue must be declared
- Will be created if doesn't exist
- No effect if queue already does exist and its attributes are the same as the declaration
- Channel-level exception is raised if attributes don't match
- e.g. to declare queue named "images.resize":
queue = AMQP::Queue.new(channel, "images.resize", :auto_delete => true)