How to handle growing number of STOMP topics with Spring-boot











up vote
1
down vote

favorite












I am currently developing a Spring-boot app that uses STOMP over Web sockets to communicate with the frontend. In my solution, I plan, the clients to periodically subscribe to new dynamically generated topics (such as: /app/topic/some/object/{id}), these topics are used for some time and then forgotten, and others come.



I was unable to find information on how Spring handles the created topics, and more specifically:




  • Is there a maximum number or topics that can be created?

  • What happens with dynamically created topics, that have no more subscribers and will never have anymore? Should I manually remove then, or Spring will take care of this?


I am using the simple in-memory message broker that comes with Spring-boot websockets, not a full-featured message broker like RabbitMQ or ActiveMQ.



Thanks










share|improve this question


























    up vote
    1
    down vote

    favorite












    I am currently developing a Spring-boot app that uses STOMP over Web sockets to communicate with the frontend. In my solution, I plan, the clients to periodically subscribe to new dynamically generated topics (such as: /app/topic/some/object/{id}), these topics are used for some time and then forgotten, and others come.



    I was unable to find information on how Spring handles the created topics, and more specifically:




    • Is there a maximum number or topics that can be created?

    • What happens with dynamically created topics, that have no more subscribers and will never have anymore? Should I manually remove then, or Spring will take care of this?


    I am using the simple in-memory message broker that comes with Spring-boot websockets, not a full-featured message broker like RabbitMQ or ActiveMQ.



    Thanks










    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I am currently developing a Spring-boot app that uses STOMP over Web sockets to communicate with the frontend. In my solution, I plan, the clients to periodically subscribe to new dynamically generated topics (such as: /app/topic/some/object/{id}), these topics are used for some time and then forgotten, and others come.



      I was unable to find information on how Spring handles the created topics, and more specifically:




      • Is there a maximum number or topics that can be created?

      • What happens with dynamically created topics, that have no more subscribers and will never have anymore? Should I manually remove then, or Spring will take care of this?


      I am using the simple in-memory message broker that comes with Spring-boot websockets, not a full-featured message broker like RabbitMQ or ActiveMQ.



      Thanks










      share|improve this question













      I am currently developing a Spring-boot app that uses STOMP over Web sockets to communicate with the frontend. In my solution, I plan, the clients to periodically subscribe to new dynamically generated topics (such as: /app/topic/some/object/{id}), these topics are used for some time and then forgotten, and others come.



      I was unable to find information on how Spring handles the created topics, and more specifically:




      • Is there a maximum number or topics that can be created?

      • What happens with dynamically created topics, that have no more subscribers and will never have anymore? Should I manually remove then, or Spring will take care of this?


      I am using the simple in-memory message broker that comes with Spring-boot websockets, not a full-featured message broker like RabbitMQ or ActiveMQ.



      Thanks







      java spring spring-boot websocket stomp






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 6 at 11:08









      Vasil Lazarov

      62




      62
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          -2
          down vote













          Second question of yous: What happens with dynamically created topics, that have no more subscribers and will never have anymore? Should I manually remove then, or Spring will take care of this?



          It has to be handled manually, no auto-configuration to address this in Spring.



          Also, were you able to successfully generate topics at run time in spring-boot? If yes, please help with your solution.






          share|improve this answer



















          • 1




            Colosis, this does not provide an answer to the question. You can search for similar questions, or refer to the related and linked questions on the right-hand side of the page to find an answer. If you have a related but different question, ask a new question, and include a link to this one to help provide context. See: Ask questions, get answers, no distractions
            – Shree
            1 hour ago










          • Please Take the Tour , and be sure with your how to answer
            – Agilanbu
            51 mins ago












          • If you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context. - From Review
            – DaveyDaveDave
            27 mins ago











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f48126716%2fhow-to-handle-growing-number-of-stomp-topics-with-spring-boot%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          -2
          down vote













          Second question of yous: What happens with dynamically created topics, that have no more subscribers and will never have anymore? Should I manually remove then, or Spring will take care of this?



          It has to be handled manually, no auto-configuration to address this in Spring.



          Also, were you able to successfully generate topics at run time in spring-boot? If yes, please help with your solution.






          share|improve this answer



















          • 1




            Colosis, this does not provide an answer to the question. You can search for similar questions, or refer to the related and linked questions on the right-hand side of the page to find an answer. If you have a related but different question, ask a new question, and include a link to this one to help provide context. See: Ask questions, get answers, no distractions
            – Shree
            1 hour ago










          • Please Take the Tour , and be sure with your how to answer
            – Agilanbu
            51 mins ago












          • If you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context. - From Review
            – DaveyDaveDave
            27 mins ago















          up vote
          -2
          down vote













          Second question of yous: What happens with dynamically created topics, that have no more subscribers and will never have anymore? Should I manually remove then, or Spring will take care of this?



          It has to be handled manually, no auto-configuration to address this in Spring.



          Also, were you able to successfully generate topics at run time in spring-boot? If yes, please help with your solution.






          share|improve this answer



















          • 1




            Colosis, this does not provide an answer to the question. You can search for similar questions, or refer to the related and linked questions on the right-hand side of the page to find an answer. If you have a related but different question, ask a new question, and include a link to this one to help provide context. See: Ask questions, get answers, no distractions
            – Shree
            1 hour ago










          • Please Take the Tour , and be sure with your how to answer
            – Agilanbu
            51 mins ago












          • If you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context. - From Review
            – DaveyDaveDave
            27 mins ago













          up vote
          -2
          down vote










          up vote
          -2
          down vote









          Second question of yous: What happens with dynamically created topics, that have no more subscribers and will never have anymore? Should I manually remove then, or Spring will take care of this?



          It has to be handled manually, no auto-configuration to address this in Spring.



          Also, were you able to successfully generate topics at run time in spring-boot? If yes, please help with your solution.






          share|improve this answer














          Second question of yous: What happens with dynamically created topics, that have no more subscribers and will never have anymore? Should I manually remove then, or Spring will take care of this?



          It has to be handled manually, no auto-configuration to address this in Spring.



          Also, were you able to successfully generate topics at run time in spring-boot? If yes, please help with your solution.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 1 hour ago

























          answered 1 hour ago









          Colosis

          23




          23








          • 1




            Colosis, this does not provide an answer to the question. You can search for similar questions, or refer to the related and linked questions on the right-hand side of the page to find an answer. If you have a related but different question, ask a new question, and include a link to this one to help provide context. See: Ask questions, get answers, no distractions
            – Shree
            1 hour ago










          • Please Take the Tour , and be sure with your how to answer
            – Agilanbu
            51 mins ago












          • If you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context. - From Review
            – DaveyDaveDave
            27 mins ago














          • 1




            Colosis, this does not provide an answer to the question. You can search for similar questions, or refer to the related and linked questions on the right-hand side of the page to find an answer. If you have a related but different question, ask a new question, and include a link to this one to help provide context. See: Ask questions, get answers, no distractions
            – Shree
            1 hour ago










          • Please Take the Tour , and be sure with your how to answer
            – Agilanbu
            51 mins ago












          • If you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context. - From Review
            – DaveyDaveDave
            27 mins ago








          1




          1




          Colosis, this does not provide an answer to the question. You can search for similar questions, or refer to the related and linked questions on the right-hand side of the page to find an answer. If you have a related but different question, ask a new question, and include a link to this one to help provide context. See: Ask questions, get answers, no distractions
          – Shree
          1 hour ago




          Colosis, this does not provide an answer to the question. You can search for similar questions, or refer to the related and linked questions on the right-hand side of the page to find an answer. If you have a related but different question, ask a new question, and include a link to this one to help provide context. See: Ask questions, get answers, no distractions
          – Shree
          1 hour ago












          Please Take the Tour , and be sure with your how to answer
          – Agilanbu
          51 mins ago






          Please Take the Tour , and be sure with your how to answer
          – Agilanbu
          51 mins ago














          If you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context. - From Review
          – DaveyDaveDave
          27 mins ago




          If you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context. - From Review
          – DaveyDaveDave
          27 mins ago


















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f48126716%2fhow-to-handle-growing-number-of-stomp-topics-with-spring-boot%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Wiesbaden

          Marschland

          Dieringhausen