# Levels for naming topic/queue names

**URL:** <https://community.solace.com/t/levels-for-naming-topic-queue-names/848>\
**Category:** Solace Event Broker\
**Tags:** topics, queue\
**Created:** [July 20, 2021, 6:59am UTC](https://community.solace.com/t/levels-for-naming-topic-queue-names/848 "2021-07-20T06:59:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aravindh\_Ravi](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/aravindh_ravi/32/1666_2.png) [@Aravindh\_Ravi](https://community.solace.com/u/Aravindh_Ravi)\
**Post date:** [July 20, 2021, 6:59am UTC](https://community.solace.com/t/levels-for-naming-topic-queue-names/848/1 "2021-07-20T06:59:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ChristianHoltfurth](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/christianholtfurth/32/995_2.png) [@ChristianHoltfurth](https://community.solace.com/u/ChristianHoltfurth)\
**Post date:** [July 20, 2021, 7:59am UTC](https://community.solace.com/t/levels-for-naming-topic-queue-names/848/2 "2021-07-20T07:59:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![amackenzie](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/amackenzie/32/1168_2.png) [@amackenzie](https://community.solace.com/u/amackenzie)\
**Post date:** [July 20, 2021, 8:06am UTC](https://community.solace.com/t/levels-for-naming-topic-queue-names/848/3 "2021-07-20T08:06:01Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![TomF](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/tomf/32/1749_2.png) [@TomF](https://community.solace.com/u/TomF)\
**Post date:** [July 20, 2021, 8:07am UTC](https://community.solace.com/t/levels-for-naming-topic-queue-names/848/4 "2021-07-20T08:07:03Z")

</div>

@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](https://solace.com/blog/topic-hierarchy-best-practices/).

---

<div class="post-metadata">

**Author:** ![Aravindh\_Ravi](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/aravindh_ravi/32/1666_2.png) [@Aravindh\_Ravi](https://community.solace.com/u/Aravindh_Ravi)\
**Post date:** [July 21, 2021, 3:29am UTC](https://community.solace.com/t/levels-for-naming-topic-queue-names/848/5 "2021-07-21T03:29:02Z")

</div>

Thanks all for the clarification

---

<div class="post-metadata">

**Author:** ![Aaron](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/aaron/32/843_2.png) [@Aaron](https://community.solace.com/u/Aaron)\
**Post date:** [July 25, 2021, 11:21am UTC](https://community.solace.com/t/levels-for-naming-topic-queue-names/848/6 "2021-07-25T11:21:38Z")

</div>

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