Prev Next

Integration / ActiveMQ Interview Questions Basics

What is a Topic in ActiveMQ?

A Topic is ActiveMQ's publish-subscribe destination: a message sent to a topic is delivered to every consumer currently subscribed to it. If no subscribers are listening at the time, non-durable subscribers simply miss the message.

Topics fit fan-out scenarios such as broadcasting price updates or notifications to multiple interested services, as opposed to a queue where only one consumer handles a given message.

A single topic can have many independent subscribers, each unaware of the others, which makes topics a natural fit whenever more than one system needs to react to the same event without one blocking or interfering with another.

A message published to a Topic goes to...
What happens if no non-durable subscriber is listening?

More Related questions...

Show more question and Answers...


Comments & Discussions