Red Hat Bugzilla – Bug 431512
Include # and * wildcard information
Last modified: 2013-10-23 19:06:20 EDT
Description of problem:
Questions from beta customer:
> 3. How does a wildcard work with the routing key? The documents you mentioned
only talk about the "#" character. Does "a.#" match "a.b" and "a.b.c"? In some
document (which I didn't note down), there was talk of "*" matching one word and
"#" matching zero or more words. Is this true? Is there a list of wildcard
examples some place?
“*” matches a single word and ‘#’ matches zero or more words.
This information should be included in the Tutorial for GA.
1.3. Topic Exchange
A Topic exchange is similar to a Direct exchange, but uses keys that contain
multiple words separated by a “.” delimiter. A message producer might create
messages with routing keys like usa.news, usa.weather, europe.news, and
Binding keys for a Topic exchanges can include wildcard characters: a “#”
matches one or more words, a “*” matches a single word. Typical bindings use
binding keys like #.news (all news items), usa.# (all items in the USA), or
usa.weather (all USA weather items).