Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7415001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:12:45+00:00 2026-05-29T07:12:45+00:00

What will happen to messages posted to a virtual topic when there are no

  • 0

What will happen to messages posted to a virtual topic when there are no consumers listening ? Will the broker hold them for a certain while until a subscriber is available ?

More specifically :
At T0 and T1 messages M0 and M1 are posted. At T2, consumer C1 connects, will he receive M0 and M1 ? Obviously messages M2 and M3 posted at T3 and T4 will be received by C1, but what will a new Consumer, C2, that connects at T5 receice ? All messages, M2 and M3, or none ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T07:12:46+00:00Added an answer on May 29, 2026 at 7:12 am

    It depends on the nature of the topic:
    if the topic is durable (has durable consumers subscribing to it), the broker will hold the messages in the topic until all the durable consumers consumes the messages.
    if the topic is non-durable (no durable consumers), the message will not even be sent to the topic, as there will be no durable subscription.

    For your example, I’ll consider that you are using durable subscriptions / consumers:
    Case 1:

    • T-2 C1 and C2 make durable subscription to the topic
    • T-1 C1 and C2 disconnect
    • T0: M0 is posted
    • T1: M1 is posted
    • T2: C1 connects. C1 receives M0 and M1
    • T3: M3 is posted. C1 receives M3
    • T4: M4 is posted. C1 receives M4
    • T5: C2 connects, C2 receives M0, M1, M2, M3, M4

    That’s because they are holding durable subscriptions
    You need to be very careful when using durable topics / queues: if the consumer doesn’t unsubscribe, the broker will hold the messages until the message store explodes. You will need to make sure it doesn’t happen (by setting eviction policies and / or putting a Time to Live on the messages).
    Of course the previous example will vary depending when the consumer does the durable subscription.

    If you are using non-durable topics:

    • T-2 C1 and C2 make normal subscription to the topic
    • T-1 C1 and C2 disconnect
    • T0: M0 is posted
    • T1: M1 is posted
    • T2: C1 connects. C1 does not receive anything
    • T3: M3 is posted. C1 receives M3
    • T4: M4 is posted. C1 receives M4
    • T5: C2 connects, C2 does not receive anything
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Problem on WindowsXP (likely will happen on all Win installs), first time using Mercurial.
What exactly will happen to the data segment and text segment if I use
My understanding is nothing will happen. For instance this code: foreach (var some in
I want to know that what will happen to my activity incase of an
Would anyone happen to know a trick that will keep this MSBuild task from
What would be happen if IP address is changed after connection is established? Will
I have a website, which will be frequently updated. Sometimes changes happen to User
What happens is whenever i upload media onto my site; everyone will get a
Will Java code built and compiled against a 32-bit JDK into 32-bit byte code
Alright, so I have a button that when clicked, will change the class of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.