Supported Service Types
The AMQP adapter’s primary function is to consume messages from AMQP-compliant queues and topics. It offers flexibility to consume messages either in real-time, as they arrive, or in batches at regular intervals, depending on the use case and performance requirements.
| In AMQP messaging systems, queues and topics are both mechanisms for distributing messages, but they serve different purposes and follow distinct messaging patterns. A queue in AMQP represents a point-to-point (P2P) communication model, where a message is sent by a producer to a queue, and it is consumed by a single consumer. There can be more than one consumer listening to a queue; however, a message will be delivered to only one consumer. On the other hand, a topic represents a publish-subscribe (pub-sub) communication model, where messages are broadcast to multiple consumers. |
To support flexible message consumption, the adapter provides several types of source services.
These source services are responsible for managing connections to AMQP brokers, creating message consumers for AMQP queues or topics, and publishing received messages to Diffusion topics. These services can be configured to create consumers with varying parameters to meet specific requirements. There are four types of source services, each designed to optimize message consumption for real-time or batch-oriented workflows:
-
Queue Listener Service: Consumes messages in real-time from an AMQP queue as they arrive and processes them immediately.
-
Topic Listener Service: Consumes messages in real-time from an AMQP topic as they arrive and processes them immediately.
-
Queue Poller Service: Periodically polls messages from an AMQP queue in batches. This service is ideal for load-balancing scenarios or use cases where batch processing enhances efficiency.
-
Topic Poller Service: Retrieves messages in batches from an AMQP topic at configured intervals, enabling efficient batch processing.
The application can be configured to run any combination of these services based on your business requirements.