SlideShare a Scribd company logo
Message Queue (MQ) Testing
UJJWAL GUPTA
Introduction: MESSAGE QUEUE (MQ)
 Message queuing allow applications to communicate by sending messages to each other. The
message queue provide a temporary message storage when the destination program is busy or not
connected.
 Message Queuing provides guaranteed message delivery, efficient routing, security, and priority-
based messaging.
“Message Queue provides an asynchronous communications protocol, a system that puts
a message onto a message queue does not require an immediate response to continue
processing”.
 Email is probably the best example of asynchronous messaging. When an email is sent can the sender
continue processing other things without an immediate response from the receiver. This way of
handling messages decouple the producer from the consumer. The producer and the consumer of the
message do not need to interact with the message queue at the same time.
 A Queue is a line of things waiting to be handled - in sequential order starting at the beginning of the
line. A message queue is a queue of messages sent between applications.
 A Message is the data transported between sender and receiver application, it's essentially a byte
array with some headers on top.
MQ Architecture
The Basic architecture of Message Queue is simple, there are client applications
called producers that create messages and deliver them to the message queue. An
other application, called consumer, connect to the queue and get the messages to
be processed. Messages placed onto the queue are stored until the consumer
retrieves them.
KEY CAPABILITIES
 Guaranteed message delivery
 Message prioritization
 Message backup and restore
 Sending messages to multiple destinations
 Cross-platform integration
 Message routing
 Dynamic queue creation
 Compatible with various transport protocols
 High-performance computing and high availability
 Asynchronous Communication
MQ - Simple Use Case / Purpose
 Let’s imagine that we’ve a web service that receives many requests every
second (i.e., Google), where no request is afford to get lost and all requests
needs to be processed by a process that is time consuming.
 Let’s suppose that our web service always has to be highly available and
ready to receive new request instead of being locked by the processing of
previous received requests. In this case it is ideal to put a queue between the
web service and the processing service.
 The web service can put the "start processing"-message on a queue and the
other process can take and handle messages in order. The two processes will
be decoupled from each other and does not need to wait for each other. If you
have a lot of requests coming in a short amount of time, the processing
system will be able to process them all anyway. The queue will persist
requests if their number becomes really huge.
Web Services vs. Message Queue (MQ)
Conditions Web Service Message Queue
If Server Fails: Client must take responsibility to handle the
error
Message Queue persist the message
(optionally, even if the machine shutdown)
If Server is working again: Client is responsible of resending it It receives the pending message
If Server gives a response to
the call & the client fails
Operation is lost If Client didn't acknowledge the response,
the message is persisted
Contention You don't have contention, i.e: if million of
clients call a web service on one server in a
second, most probably your server will go
down.
You have contention, you can decide how
many requests are handled by the server
Expect an immediate
response from the server
You can expect an immediate response from
the server, but you can handle asynchronous
calls too.
You don't expect an immediate synchronous
response, but you can implement/simulate
synchronous calls.
ActiveMQ Portal
Message Queue (MQ) Testing

More Related Content

PPTX
Message Queue (MQ) Testing
PDF
Rabbitmq basics
PDF
Messaging in Java
PPT
websphere MQ training Online
PPTX
AMQP 1.0 introduction
PDF
Ibm websphere mq
PPTX
RabbitMq
PPT
Apache ActiveMQ - Enterprise messaging in action
Message Queue (MQ) Testing
Rabbitmq basics
Messaging in Java
websphere MQ training Online
AMQP 1.0 introduction
Ibm websphere mq
RabbitMq
Apache ActiveMQ - Enterprise messaging in action

What's hot (20)

PDF
Rabbitmq an amqp message broker
PPTX
#7 (Java Message Service)
PPT
AMQP and RabbitMQ (OKCJUG, January 2014)
PDF
Enterprise Messaging with Apache ActiveMQ
PPTX
Enterprise messaging with jms
PPTX
Rabbit MQ introduction
PDF
MQ Security Overview
PPTX
mqtt intro short
PDF
Introduction to Apache ActiveMQ Artemis
PDF
Wcf faq
PDF
Congestion control
PDF
A Closer Look at RabbitMQ
PPTX
JMS-Java Message Service
PPTX
Active mq Installation and Master Slave setup
PPTX
Java Message Service
PPT
IBM WebSphere MQ: Managing Workloads, Scaling and Availability with MQ Clusters
PPTX
Mule with rabbitmq
PPTX
Connection Establishment & Flow and Congestion Control
PPTX
Internet congestion
PDF
Messaging in the Cloud - AMQP, RabbitMQ and Spring
Rabbitmq an amqp message broker
#7 (Java Message Service)
AMQP and RabbitMQ (OKCJUG, January 2014)
Enterprise Messaging with Apache ActiveMQ
Enterprise messaging with jms
Rabbit MQ introduction
MQ Security Overview
mqtt intro short
Introduction to Apache ActiveMQ Artemis
Wcf faq
Congestion control
A Closer Look at RabbitMQ
JMS-Java Message Service
Active mq Installation and Master Slave setup
Java Message Service
IBM WebSphere MQ: Managing Workloads, Scaling and Availability with MQ Clusters
Mule with rabbitmq
Connection Establishment & Flow and Congestion Control
Internet congestion
Messaging in the Cloud - AMQP, RabbitMQ and Spring
Ad

Viewers also liked (20)

PDF
Websphere MQ (MQSeries) fundamentals
PPT
Caveon Webinar Series: Considerations for Online Assessment Program Design
PPTX
SQL Tuning and VST
PPT
Oracle 10g Performance: chapter 00 statspack
PPT
Oracle 10g Performance: chapter 01 ash
PPT
Oracle 10g rac_overview
PDF
Step By Step Install Oracle 10g Rac Asm On Windows
ODP
Creating Queue Manager and Queue's in IBM WebSphere Mq
PPTX
Sending and receiving messages in mq queues
PPT
Oracle 10g Performance: chapter 05 waits intro
PPT
Oracle 10g Performance: chapter 00 intro live_short
PDF
Oracle database performance tuning
PPTX
Oracle DB Performance Tuning Tips
PPTX
Oracle database performance tuning
PDF
Websphere MQ admin guide
PPTX
Oracle Oracle Performance Tuning
PPSX
Oracle 11g R2 RAC implementation and concept
DOCX
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
PPTX
Top 10 tips for Oracle performance (Updated April 2015)
PPTX
Oracle sql high performance tuning
Websphere MQ (MQSeries) fundamentals
Caveon Webinar Series: Considerations for Online Assessment Program Design
SQL Tuning and VST
Oracle 10g Performance: chapter 00 statspack
Oracle 10g Performance: chapter 01 ash
Oracle 10g rac_overview
Step By Step Install Oracle 10g Rac Asm On Windows
Creating Queue Manager and Queue's in IBM WebSphere Mq
Sending and receiving messages in mq queues
Oracle 10g Performance: chapter 05 waits intro
Oracle 10g Performance: chapter 00 intro live_short
Oracle database performance tuning
Oracle DB Performance Tuning Tips
Oracle database performance tuning
Websphere MQ admin guide
Oracle Oracle Performance Tuning
Oracle 11g R2 RAC implementation and concept
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
Top 10 tips for Oracle performance (Updated April 2015)
Oracle sql high performance tuning
Ad

Similar to Message Queue (MQ) Testing (20)

PPTX
Synchronous and asynchronous software communication components
ODP
Art Of Message Queues
PPT
Mq Lecture
ODP
The Art of Message Queues - TEKX
PDF
IBM IMPACT 2014 AMC-1866 Introduction to IBM Messaging Capabilities
PDF
An Introduction to the Message Queuing Technology & IBM WebSphere MQ
PDF
Message Queues a basic overview
PPTX
Message Oriented Middleware
PPTX
Message queues
ODP
The Art of Message Queues
PPTX
IBM MQ Series For ZOS
PPTX
Real usages of jms message queues
PDF
Life in a Queue - Using Message Queue with django
PDF
Do More With Message Queue
PDF
IBM IMPACT 2014 - AMC-1882 Building a Scalable & Continuously Available IBM M...
PDF
On MQ Series & JMS
PDF
[OSC2016] マイクロサービスを支える MQ を考える
PPTX
Message queue architecture
PPTX
SOA Pattern-Asynchronous Queuing
PDF
Usp message queues
Synchronous and asynchronous software communication components
Art Of Message Queues
Mq Lecture
The Art of Message Queues - TEKX
IBM IMPACT 2014 AMC-1866 Introduction to IBM Messaging Capabilities
An Introduction to the Message Queuing Technology & IBM WebSphere MQ
Message Queues a basic overview
Message Oriented Middleware
Message queues
The Art of Message Queues
IBM MQ Series For ZOS
Real usages of jms message queues
Life in a Queue - Using Message Queue with django
Do More With Message Queue
IBM IMPACT 2014 - AMC-1882 Building a Scalable & Continuously Available IBM M...
On MQ Series & JMS
[OSC2016] マイクロサービスを支える MQ を考える
Message queue architecture
SOA Pattern-Asynchronous Queuing
Usp message queues

Recently uploaded (20)

PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Encapsulation theory and applications.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Approach and Philosophy of On baking technology
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
cuic standard and advanced reporting.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
NewMind AI Weekly Chronicles - August'25 Week I
Spectral efficient network and resource selection model in 5G networks
Encapsulation theory and applications.pdf
Big Data Technologies - Introduction.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
MYSQL Presentation for SQL database connectivity
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Understanding_Digital_Forensics_Presentation.pptx
Chapter 3 Spatial Domain Image Processing.pdf
Unlocking AI with Model Context Protocol (MCP)
Approach and Philosophy of On baking technology
Dropbox Q2 2025 Financial Results & Investor Presentation
Mobile App Security Testing_ A Comprehensive Guide.pdf
cuic standard and advanced reporting.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf

Message Queue (MQ) Testing

  • 1. Message Queue (MQ) Testing UJJWAL GUPTA
  • 2. Introduction: MESSAGE QUEUE (MQ)  Message queuing allow applications to communicate by sending messages to each other. The message queue provide a temporary message storage when the destination program is busy or not connected.  Message Queuing provides guaranteed message delivery, efficient routing, security, and priority- based messaging. “Message Queue provides an asynchronous communications protocol, a system that puts a message onto a message queue does not require an immediate response to continue processing”.  Email is probably the best example of asynchronous messaging. When an email is sent can the sender continue processing other things without an immediate response from the receiver. This way of handling messages decouple the producer from the consumer. The producer and the consumer of the message do not need to interact with the message queue at the same time.  A Queue is a line of things waiting to be handled - in sequential order starting at the beginning of the line. A message queue is a queue of messages sent between applications.  A Message is the data transported between sender and receiver application, it's essentially a byte array with some headers on top.
  • 3. MQ Architecture The Basic architecture of Message Queue is simple, there are client applications called producers that create messages and deliver them to the message queue. An other application, called consumer, connect to the queue and get the messages to be processed. Messages placed onto the queue are stored until the consumer retrieves them.
  • 4. KEY CAPABILITIES  Guaranteed message delivery  Message prioritization  Message backup and restore  Sending messages to multiple destinations  Cross-platform integration  Message routing  Dynamic queue creation  Compatible with various transport protocols  High-performance computing and high availability  Asynchronous Communication
  • 5. MQ - Simple Use Case / Purpose  Let’s imagine that we’ve a web service that receives many requests every second (i.e., Google), where no request is afford to get lost and all requests needs to be processed by a process that is time consuming.  Let’s suppose that our web service always has to be highly available and ready to receive new request instead of being locked by the processing of previous received requests. In this case it is ideal to put a queue between the web service and the processing service.  The web service can put the "start processing"-message on a queue and the other process can take and handle messages in order. The two processes will be decoupled from each other and does not need to wait for each other. If you have a lot of requests coming in a short amount of time, the processing system will be able to process them all anyway. The queue will persist requests if their number becomes really huge.
  • 6. Web Services vs. Message Queue (MQ) Conditions Web Service Message Queue If Server Fails: Client must take responsibility to handle the error Message Queue persist the message (optionally, even if the machine shutdown) If Server is working again: Client is responsible of resending it It receives the pending message If Server gives a response to the call & the client fails Operation is lost If Client didn't acknowledge the response, the message is persisted Contention You don't have contention, i.e: if million of clients call a web service on one server in a second, most probably your server will go down. You have contention, you can decide how many requests are handled by the server Expect an immediate response from the server You can expect an immediate response from the server, but you can handle asynchronous calls too. You don't expect an immediate synchronous response, but you can implement/simulate synchronous calls.