jms - ActiveMQ create hierarchical topics with wildcards -
i have read in activemq documentation, subtopics can created using wildcards. instance create topics:
- physicalenvironmet.conditions
- physicalenvironmet.infrastructure
- physicalenvironmet.location
i register either 1 of topics, or (physicalenvironmet.>)
but how working more complex structures, this:
would topic flickering called:
- physicalenvironmet.conditions.light.flickering
and still have precise selection, subscribing topics considered light:
- physicalenvironmet.conditions.light.>
so asking if there level restriction subtopics , if there maybe more easy way create hierarchical topic orders.
in 10+ yrs of messaging, every hierarchal topic structure ends being replaced, b/c taxonomy never works out. overall message pattern suggests moderate total volume, suggest flexible event model use fields define variance vs topic names eventtype="environmental" sensortype="light". allows add new ones , have option of filtering out clients want , not want without having mess broker.
another option use jms headers same. allow use selectors broker-side filtering.
Comments
Post a Comment