Levels for naming topic/queue names

Is it always required to provide pattern of all 4 levels when we create a solace topic?

Hi @Aravindh_Ravi ,

Can you explain what you mean by 4 required levels and provide more context to your question?

Without further background on your question, I’d answer simply that you don’t need to provide 4 levels.

You can publish to pretty much any string value representing a topic in Solace.
For example, I could publish to topics like

  • 1
  • topic1
  • a
  • a/b
  • a/b/c
  • myfirstlevel/mysecondlevel/mythirdlevel/myfourthlevel/myfifthlevel/mysixthlevel
  • andsoonandsoforth

Similarly for queues, there’s no level requirement. You could simply name your queues:

  • queue1
  • queue2
  • my.queue

Hello,
Solace topics are very flexible and there are very few requirements.
It is not required to have multiple levels at all.
For example a is a valid topic name in PubSub+.
Levels and wildcards can be added to provide structure and flexibility to your application but such structure is not required. It’s more of a “best practice” for application design.

@Arvind_Mishra , further to what @ChristianHoltfurth said, topics in Solace are fully dynamic - that means a topic can have from 1 to 128 levels.

However, you may have a topic taxonomy. That specifies what levels your topic should conform to. It may be that you have a topic taxonomy that specifies 4 levels. This would be unusual, I think - it’s rather a small number of levels.

You can find out more about topic taxonomies in this blog.

Thanks all for the clarification

@Aravindh_Ravi … where did you hear that Solace topics require 4 levels? Or how did you come to understand that? Thanks!