Explain what the [Ruby] example does
This commit is contained in:
		
							parent
							
								
									98be220b50
								
							
						
					
					
						commit
						9eb9a4660c
					
				| 
						 | 
					@ -15,6 +15,13 @@ were not deleted.
 | 
				
			||||||
bundle install
 | 
					bundle install
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Workload Details
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					This example uses four queues: `q1` through `q4`. The first two of them are bound to a consistent hashing
 | 
				
			||||||
 | 
					exchange with a weight of `1`, while the last two of them use a weight of `2`. This means
 | 
				
			||||||
 | 
					that `q3` and `q4` will get roughly twice as many published messages routed to them
 | 
				
			||||||
 | 
					compared to either `q1` or `q2`.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Running the Example
 | 
					## Running the Example
 | 
				
			||||||
 | 
					
 | 
				
			||||||
``` sh
 | 
					``` sh
 | 
				
			||||||
| 
						 | 
					@ -27,3 +34,17 @@ bundle exec ruby ./example2.rb
 | 
				
			||||||
# hashing on a message property
 | 
					# hashing on a message property
 | 
				
			||||||
bundle exec ruby ./example3.rb
 | 
					bundle exec ruby ./example3.rb
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Inspecting Queue States
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					To list bindings to the exchange and their weights, use
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					``` shell
 | 
				
			||||||
 | 
					rabbitmqctl list_bindings | grep chx
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					To list queues and the number of ready messages in them:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					``` shell
 | 
				
			||||||
 | 
					rabbitmqctl list_queues name messages_ready
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
		Loading…
	
		Reference in New Issue