🎄 Happy Holidays! 🥳

Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.

Happy Holidays!

Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.

Can I make multiple topics in one topic endpoint?

Wonseog
Wonseog Member Posts: 1
I tried test this (1 endpoint, 2 topic) using 'try me' from two notebooks. But subscirbe to second topic I got ' Consumer could not bind to the topic endpoint: Max clients exceeded for durable topic endpoint' error. I increase 'Maximum Consumer Count' to 10, the result is same.
Is it not supported or any other configruation exists?

Answers

  • amackenzie
    amackenzie Member, Employee Posts: 269 Solace Employee

    Topic endpoints exist mainly to provide support for JMS durable topic subscriptions. Those are limited to a single subscription because the JMS API only supports a single subscription per topic.

    The alternative is to use queues. Queues accept multiple subscriptions and are always recommended over topic endpoints in all use cases that are not JMS durable topics.

    Solace best practices for persistent messages are to consume from a queue and publish to a topic. The topic can be added to 0-n queues as subscriptions and a queue can attract any number of topics.