SlideShare a Scribd company logo
1
November 1, 2022
Mysore MuleSoft Meetup
Anypoint MQ
Safe Harbour Statement
● Both the speaker and the host are organizing this meet-up in individual capacity only. We are
not representing our companies here.
● This presentation is strictly for learning purposes only. Organizer/Presenter do not hold any
responsibility that same solution will work for your business requirements.
● This presentation is not meant for any promotional activities.
3
A recording of this meetup will be uploaded to events page within 24 hours.
Questions can be submitted/asked at any time in the Chat/Questions & Answers Tab.
Make it more Interactive!!!
Give us feedback! Rate this meetup session by filling feedback form at the end of the day.
We Love Feedbacks!!! Its Bread & Butter for Meetup.
Housekeeping
4
5
A SHOW OF HANDS:
New Members With Us.!!
CHEERS…!!!
We have prizes to give away!
3 lucky winners will receive a MuleSoft voucher!!!
Introduction
● About the Organizers
6
Shubham Chaurasia
Billennium India
Professional Integration Developer
A SHOW OF HANDS:
Who is new to this Meetup?
 Certified MuleSoft Developer
 6+ years of Total Experience, 5+ years in MuleSoft
 Working as Sr. Engineering Management Specialist at
HashedIn By Deloitte
● About the Speaker
Speaker
7
8
● Introductions
 What is Anypoint MQ?
 What are the different types of Queues & Operations Anypoint MQ supports?
 How can we leverage Anypoint Platform to publish messages directly?
 Brief discussion on MQ connectors and configurations
● Demo
● Trivia
● Wrap-Up
Agenda
 Multi-Tenant
 Cloud messaging service
 Supports large payloads (max 10 MB)
 Is managed easily using Anypoint Platform
 Provides dead-letter queue (DLQ) for undeliverable messages
 Performs asynchronous messaging scenarios between applications
 Anypoint MQ supports up to 120,000 in-flight messages per standard (non-FIFO) queue
Anypoint MQ
9
 REST API
 Large payloads
 Message groups
 Disaster recovery
 Encrypted queues
 Usage information
 Client management
 Anypoint MQ connector
 Delayed delivery for messages
 Queues and Message Exchanges
 Environments and role-based access control
Anypoint MQ Features
10
 REST API
 Large payloads
 Message groups
 Disaster recovery
 Encrypted queues
 Usage information
 Client management
 Anypoint MQ connector
 Delayed delivery for messages
 Queues and Message Exchanges
 Environments and role-based access control
Anypoint MQ Features
11
 REST API
 Large payloads
 Message groups
 Disaster recovery
 Encrypted queues
 Usage information
 Client management
 Anypoint MQ connector
 Delayed delivery for messages
 Queues and Message Exchanges
 Environments and role-based access control
Anypoint MQ Features
12
 REST API
 Large payloads
 Message groups
 Disaster recovery
 Encrypted queues
 Usage information
 Client management
 Anypoint MQ connector
 Delayed delivery for messages
 Queues and Message Exchanges
 Environments and role-based access control
Anypoint MQ Features
13
Type of Queues
 Queue: The queue is a storage area where messages are
stored for processing.
 Exchange: The exchange is used for broadcasting a
messages, like one message to multiple consumers. If any
message is send to the exchange, it will be forwarded to all
the the queues binded with it.
 FIFO (first in, first out): FIFO is a normal queue where
messages are stored.The FIFO queue is used when
message need to be consumed in order.
14
Type of Queues
 Queue: The queue is a storage area where messages are
stored for processing.
 Exchange: The exchange is used for broadcasting a
messages, like one message to multiple consumers. If any
message is send to the exchange, it will be forwarded to all
the the queues binded with it. we cannot bind FIFO queue
to exchange.
 FIFO (first in, first out): FIFO is a normal queue where
messages are stored.The FIFO queue is used when
message need to be consumed in order.
15
n=450
 The dead-letter queue or (undelivered-message queue) is the queue to which messages are
sent if they cannot be routed to their correct destination.
 Few things to remember before creating a DLQ.
The DLQ and parent queue both need to be:
 Same type of queue (standard or FIFO)
 Created in the same geographical region
 Created in the same environment and owned by the same Anypoint Platform account
Dead Letter Queue (DLQ)
16
17
DLQ Flowchart
Types of Connectors
 Subscriber to subscribe to the queue and listen for the receiving
message. (Event source)
 Publish to publish the message to the Queue.
 Consumer to consume a message from the queue.
 Ack to send an acknowledgement to the queue about the
successful consumption of the message and delete the message
from in-flight status.
 Nack to send negative acknowledgement to the queue stating the
consumed message is not processed successfully; changes the
status of the message from in-flight to in-queue to be consumed
again by an available consumer.
18
Message Acknowledgment
 Automatic: By default, the Subscriber source uses the AUTO acknowledgment mode.
With this mode, the messages that the Subscriber source retrieves are acknowledged
automatically after message flow processing succeeds.
 Immediate: When you use the IMMEDIATE acknowledgment mode, the consumed
message is acknowledged right before being dispatched to the Mule flow.
 Manual: When you use the MANUAL acknowledgment mode, the application logic
decides when to perform the acknowledgment of the message, using
the ACK or NACK sources. To perform the manual acknowledgment, you need the value
of ack token provided as part of the resulting message attributes.
19
Configuration
Main elements required:
 URL: Destination url.
 Client API ID: Id from
Client Apps.
 Client Secret: Secret
from client Apps.
20
Circuit Breaker
21
 The Subscriber source provides circuit breaking capability, which enables you to
control how the connector handles errors that occur while processing a consumed
message.
 For example, when connecting to an external service, you can use the circuit breaker to
handle any downtime of that service. The circuit breaker allows the system to stop making
requests and allows the external service to recover under a reduced load.
The circuit breaker has three states:
 Closed: Normal retrieval and processing of message based on the subscriber strategy.
 Half Open: Retrieve a single message and attempt to process it.
 Open: Scheduled message fetch are skipped and no more messages are processed.
Error Types
 ANYPOINT-MQ:ACKING
 ANYPOINT-MQ:TIMEOUT
 ANYPOINT-MQ:NACKING
 ANYPOINT-MQ:PUBLISHING
 ANYPOINT-MQ:CONSUMING
 ANYPOINT-MQ:CONNECTIVITY
 ANYPOINT-MQ:ILLEGAL_BODY
 ANYPOINT-MQ:RETRY_EXHAUSTED
 ANYPOINT-MQ:DESTINATION_NOT_FOUND
22
Anypoint MQ REST APIs
Anypoint MQ APIs enable you to use REST to send and receive messages, administer
queues and message exchanges, and analyse results.
Anypoint MQ provides these APIs:
 Anypoint MQ Admin API: This API allows users to manage their destinations.
 Anypoint MQ Broker API: This API allows clients to send & receive messages from
queues & exchanges.
 Anypoint MQ Stats API: This API allows users to view statistics for destinations.
23
Anypoint MQ REST API References
 Admin API Doc:
https://anypoint.mulesoft.com/exchange/portals/anypoint-platform/f1e97bc6-315a-4490-82a7-
23abe036327a.anypoint-platform/anypoint-mq-admin/minor/1.0/console/method/%23503/
 Broker API Doc:
https://anypoint.mulesoft.com/exchange/portals/anypoint-platform/f1e97bc6-315a-4490-82a7-
23abe036327a.anypoint-platform/anypoint-mq-broker/minor/1.0/console/method/%23482/
 Stats API Doc:
https://anypoint.mulesoft.com/exchange/portals/anypoint-platform/f1e97bc6-315a-4490-82a7-
23abe036327a.anypoint-platform/anypoint-mq-stats/minor/1.0/console/summary/
24
Limitations of Anypoint MQ
 Anypoint MQ cannot be deployed on-premises.
Note: We have REST APIs to overcome this limitation.
 Max size of payload is limited to 10 MB, cannot process payloads larger than 10 MB.
25
Demo
Q&A
Take a stand !
28
● Nominate yourself for the next meetup speaker and suggest a topic as well.
29
● Share:
○ Tweet using the hashtag #MuleSoftMeetups
○ Join Mysore Group: https://meetups.mulesoft.com/mysore/
● Feedback:
○ Fill out the survey feedback and suggest topics for upcoming events
○ Contact MuleSoft at meetups@mulesoft.com for ways to improve the program
○ Reach out to Mysore Meetup Leaders (Shubham / Giridhar) to suggest
topics for next Meetup
What’s next?
Get ready to WIN a MuleSoft Voucher from MuleSoft
Quiz Time
Thank you

More Related Content

Similar to Learn Anypoint MQ | MuleSoft Mysore Meetup #7

f2f-overview1-presentation about rabbitmq and middleware
f2f-overview1-presentation about rabbitmq and middlewaref2f-overview1-presentation about rabbitmq and middleware
f2f-overview1-presentation about rabbitmq and middleware
ndonikristi98
 

Similar to Learn Anypoint MQ | MuleSoft Mysore Meetup #7 (20)

IBM MQ Series For ZOS
IBM MQ Series For ZOSIBM MQ Series For ZOS
IBM MQ Series For ZOS
 
Event driven-arch
Event driven-archEvent driven-arch
Event driven-arch
 
Message queuing telemetry transport (mqtt) id and other type parameters
Message queuing telemetry transport (mqtt) id and other type parametersMessage queuing telemetry transport (mqtt) id and other type parameters
Message queuing telemetry transport (mqtt) id and other type parameters
 
#4 Mulesoft Virtual Meetup Kolkata December 2020
#4 Mulesoft Virtual Meetup Kolkata December 2020#4 Mulesoft Virtual Meetup Kolkata December 2020
#4 Mulesoft Virtual Meetup Kolkata December 2020
 
HHM-3481: IBM MQ for z/OS: Enhancing Application and Messaging Connectivity ...
 HHM-3481: IBM MQ for z/OS: Enhancing Application and Messaging Connectivity ... HHM-3481: IBM MQ for z/OS: Enhancing Application and Messaging Connectivity ...
HHM-3481: IBM MQ for z/OS: Enhancing Application and Messaging Connectivity ...
 
Mumbai MuleSoft Meetup:Batch Processing, Anypoint Messaging Queue and Custom ...
Mumbai MuleSoft Meetup:Batch Processing, Anypoint Messaging Queue and Custom ...Mumbai MuleSoft Meetup:Batch Processing, Anypoint Messaging Queue and Custom ...
Mumbai MuleSoft Meetup:Batch Processing, Anypoint Messaging Queue and Custom ...
 
Uncover the Flex Gateway with a Demonstration (1).pdf
Uncover the Flex Gateway with a Demonstration (1).pdfUncover the Flex Gateway with a Demonstration (1).pdf
Uncover the Flex Gateway with a Demonstration (1).pdf
 
Uncover the Flex Gateway with a Demonstration (1).pdf
Uncover the Flex Gateway with a Demonstration (1).pdfUncover the Flex Gateway with a Demonstration (1).pdf
Uncover the Flex Gateway with a Demonstration (1).pdf
 
SOA Pattern-Asynchronous Queuing
SOA Pattern-Asynchronous QueuingSOA Pattern-Asynchronous Queuing
SOA Pattern-Asynchronous Queuing
 
HHM-3540: The IBM MQ Light API: From Developer Laptop to Enterprise Data Cen...
 HHM-3540: The IBM MQ Light API: From Developer Laptop to Enterprise Data Cen... HHM-3540: The IBM MQ Light API: From Developer Laptop to Enterprise Data Cen...
HHM-3540: The IBM MQ Light API: From Developer Laptop to Enterprise Data Cen...
 
Velocity Conference '13: Asynchronous messaging for performance optimization,...
Velocity Conference '13: Asynchronous messaging for performance optimization,...Velocity Conference '13: Asynchronous messaging for performance optimization,...
Velocity Conference '13: Asynchronous messaging for performance optimization,...
 
Chat application through client server management system project.pdf
Chat application through client server management system project.pdfChat application through client server management system project.pdf
Chat application through client server management system project.pdf
 
REST APIs and MQ
REST APIs and MQREST APIs and MQ
REST APIs and MQ
 
Enterprise messaging with jms
Enterprise messaging with jmsEnterprise messaging with jms
Enterprise messaging with jms
 
Event Driven Architecture
Event Driven ArchitectureEvent Driven Architecture
Event Driven Architecture
 
f2f-overview12.ppt
f2f-overview12.pptf2f-overview12.ppt
f2f-overview12.ppt
 
f2f-overview1-presentation about rabbitmq and middleware
f2f-overview1-presentation about rabbitmq and middlewaref2f-overview1-presentation about rabbitmq and middleware
f2f-overview1-presentation about rabbitmq and middleware
 
Message queues
Message queuesMessage queues
Message queues
 
MuleSoft Surat Virtual Meetup#31 - Async API, Process Error, Circuit Breaker ...
MuleSoft Surat Virtual Meetup#31 - Async API, Process Error, Circuit Breaker ...MuleSoft Surat Virtual Meetup#31 - Async API, Process Error, Circuit Breaker ...
MuleSoft Surat Virtual Meetup#31 - Async API, Process Error, Circuit Breaker ...
 
What is RabbitMQ ?
What is RabbitMQ ?What is RabbitMQ ?
What is RabbitMQ ?
 

More from MysoreMuleSoftMeetup

MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MysoreMuleSoftMeetup
 
Payment Integration using Braintree Connector | MuleSoft Mysore Meetup #37
Payment Integration using Braintree Connector | MuleSoft Mysore Meetup #37Payment Integration using Braintree Connector | MuleSoft Mysore Meetup #37
Payment Integration using Braintree Connector | MuleSoft Mysore Meetup #37
MysoreMuleSoftMeetup
 

More from MysoreMuleSoftMeetup (20)

Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
 
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
 
MuleSoft Integration with AWS Lambda [Serverless Function] | MuleSoft Mysore ...
MuleSoft Integration with AWS Lambda [Serverless Function] | MuleSoft Mysore ...MuleSoft Integration with AWS Lambda [Serverless Function] | MuleSoft Mysore ...
MuleSoft Integration with AWS Lambda [Serverless Function] | MuleSoft Mysore ...
 
Munits in Mule 4 [Deep-Dive] | MuleSoft Mysore Meetup #40
Munits in Mule 4 [Deep-Dive] | MuleSoft Mysore Meetup #40Munits in Mule 4 [Deep-Dive] | MuleSoft Mysore Meetup #40
Munits in Mule 4 [Deep-Dive] | MuleSoft Mysore Meetup #40
 
Unlocking Seamless End-to-End Automation with the MuleSoft Automation Suite |...
Unlocking Seamless End-to-End Automation with the MuleSoft Automation Suite |...Unlocking Seamless End-to-End Automation with the MuleSoft Automation Suite |...
Unlocking Seamless End-to-End Automation with the MuleSoft Automation Suite |...
 
State Management in Mule applications | MuleSoft Mysore Meetup #42
State Management in Mule applications |  MuleSoft Mysore Meetup #42State Management in Mule applications |  MuleSoft Mysore Meetup #42
State Management in Mule applications | MuleSoft Mysore Meetup #42
 
Anypoint Code Builder (ACB) + AI + Hands-On | MuleSoft Mysore Meetup #41
Anypoint Code Builder (ACB) + AI + Hands-On |  MuleSoft Mysore Meetup #41Anypoint Code Builder (ACB) + AI + Hands-On |  MuleSoft Mysore Meetup #41
Anypoint Code Builder (ACB) + AI + Hands-On | MuleSoft Mysore Meetup #41
 
Transaction Management in Mule 4 | MuleSoft Mysore Meetup #39
Transaction Management in Mule 4 |  MuleSoft Mysore Meetup #39Transaction Management in Mule 4 |  MuleSoft Mysore Meetup #39
Transaction Management in Mule 4 | MuleSoft Mysore Meetup #39
 
Exploring the realms of MuleSoft RPA | MuleSoft Mysore Meetup #38
Exploring the realms of MuleSoft RPA | MuleSoft Mysore Meetup #38Exploring the realms of MuleSoft RPA | MuleSoft Mysore Meetup #38
Exploring the realms of MuleSoft RPA | MuleSoft Mysore Meetup #38
 
Payment Integration using Braintree Connector | MuleSoft Mysore Meetup #37
Payment Integration using Braintree Connector | MuleSoft Mysore Meetup #37Payment Integration using Braintree Connector | MuleSoft Mysore Meetup #37
Payment Integration using Braintree Connector | MuleSoft Mysore Meetup #37
 
Azure DevOps Pipeline setup for Mule APIs #36
Azure DevOps Pipeline setup for Mule APIs #36Azure DevOps Pipeline setup for Mule APIs #36
Azure DevOps Pipeline setup for Mule APIs #36
 
Mastering the Puzzle Integration Patterns Decoded | MuleSoft Mysore Meetup #35
Mastering the Puzzle Integration Patterns Decoded | MuleSoft Mysore Meetup #35Mastering the Puzzle Integration Patterns Decoded | MuleSoft Mysore Meetup #35
Mastering the Puzzle Integration Patterns Decoded | MuleSoft Mysore Meetup #35
 
Discovering Seamless Integration: MuleSoft, AWS and Snowflake | MuleSoft Myso...
Discovering Seamless Integration: MuleSoft, AWS and Snowflake | MuleSoft Myso...Discovering Seamless Integration: MuleSoft, AWS and Snowflake | MuleSoft Myso...
Discovering Seamless Integration: MuleSoft, AWS and Snowflake | MuleSoft Myso...
 
Application Design Thinking wrt Integration Architecture - Part II | MuleSoft...
Application Design Thinking wrt Integration Architecture - Part II | MuleSoft...Application Design Thinking wrt Integration Architecture - Part II | MuleSoft...
Application Design Thinking wrt Integration Architecture - Part II | MuleSoft...
 
HL7 Integration using Mulesoft | MuleSoft Mysore Meetp #32
HL7 Integration using Mulesoft | MuleSoft Mysore Meetp #32HL7 Integration using Mulesoft | MuleSoft Mysore Meetp #32
HL7 Integration using Mulesoft | MuleSoft Mysore Meetp #32
 
Application Design Thinking wrt Integration Architecture - Part I | MuleSoft ...
Application Design Thinking wrt Integration Architecture - Part I | MuleSoft ...Application Design Thinking wrt Integration Architecture - Part I | MuleSoft ...
Application Design Thinking wrt Integration Architecture - Part I | MuleSoft ...
 
Slack and ChatGPT Integration using MuleSoft | MuleSoft Mysore Meetup #30
Slack and ChatGPT Integration using MuleSoft | MuleSoft Mysore Meetup #30Slack and ChatGPT Integration using MuleSoft | MuleSoft Mysore Meetup #30
Slack and ChatGPT Integration using MuleSoft | MuleSoft Mysore Meetup #30
 
Platform configuration on CloudHub 2.0 | MuleSoft Mysore Meetup #29
Platform configuration on CloudHub 2.0 | MuleSoft Mysore Meetup #29Platform configuration on CloudHub 2.0 | MuleSoft Mysore Meetup #29
Platform configuration on CloudHub 2.0 | MuleSoft Mysore Meetup #29
 
MuleSoft Integration with ChatGPT — Part 1 | MuleSoft Mysore Meetup #27
MuleSoft Integration with ChatGPT — Part 1 | MuleSoft Mysore Meetup #27MuleSoft Integration with ChatGPT — Part 1 | MuleSoft Mysore Meetup #27
MuleSoft Integration with ChatGPT — Part 1 | MuleSoft Mysore Meetup #27
 

Recently uploaded

The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
plant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated cropsplant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated crops
parmarsneha2
 

Recently uploaded (20)

The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Extraction Of Natural Dye From Beetroot (Beta Vulgaris) And Preparation Of He...
Extraction Of Natural Dye From Beetroot (Beta Vulgaris) And Preparation Of He...Extraction Of Natural Dye From Beetroot (Beta Vulgaris) And Preparation Of He...
Extraction Of Natural Dye From Beetroot (Beta Vulgaris) And Preparation Of He...
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
plant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated cropsplant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated crops
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
NCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdfNCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdf
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
B.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdfB.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdf
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 

Learn Anypoint MQ | MuleSoft Mysore Meetup #7

  • 1. 1
  • 2. November 1, 2022 Mysore MuleSoft Meetup Anypoint MQ
  • 3. Safe Harbour Statement ● Both the speaker and the host are organizing this meet-up in individual capacity only. We are not representing our companies here. ● This presentation is strictly for learning purposes only. Organizer/Presenter do not hold any responsibility that same solution will work for your business requirements. ● This presentation is not meant for any promotional activities. 3
  • 4. A recording of this meetup will be uploaded to events page within 24 hours. Questions can be submitted/asked at any time in the Chat/Questions & Answers Tab. Make it more Interactive!!! Give us feedback! Rate this meetup session by filling feedback form at the end of the day. We Love Feedbacks!!! Its Bread & Butter for Meetup. Housekeeping 4
  • 5. 5 A SHOW OF HANDS: New Members With Us.!! CHEERS…!!! We have prizes to give away! 3 lucky winners will receive a MuleSoft voucher!!!
  • 6. Introduction ● About the Organizers 6 Shubham Chaurasia Billennium India Professional Integration Developer A SHOW OF HANDS: Who is new to this Meetup?
  • 7.  Certified MuleSoft Developer  6+ years of Total Experience, 5+ years in MuleSoft  Working as Sr. Engineering Management Specialist at HashedIn By Deloitte ● About the Speaker Speaker 7
  • 8. 8 ● Introductions  What is Anypoint MQ?  What are the different types of Queues & Operations Anypoint MQ supports?  How can we leverage Anypoint Platform to publish messages directly?  Brief discussion on MQ connectors and configurations ● Demo ● Trivia ● Wrap-Up Agenda
  • 9.  Multi-Tenant  Cloud messaging service  Supports large payloads (max 10 MB)  Is managed easily using Anypoint Platform  Provides dead-letter queue (DLQ) for undeliverable messages  Performs asynchronous messaging scenarios between applications  Anypoint MQ supports up to 120,000 in-flight messages per standard (non-FIFO) queue Anypoint MQ 9
  • 10.  REST API  Large payloads  Message groups  Disaster recovery  Encrypted queues  Usage information  Client management  Anypoint MQ connector  Delayed delivery for messages  Queues and Message Exchanges  Environments and role-based access control Anypoint MQ Features 10
  • 11.  REST API  Large payloads  Message groups  Disaster recovery  Encrypted queues  Usage information  Client management  Anypoint MQ connector  Delayed delivery for messages  Queues and Message Exchanges  Environments and role-based access control Anypoint MQ Features 11
  • 12.  REST API  Large payloads  Message groups  Disaster recovery  Encrypted queues  Usage information  Client management  Anypoint MQ connector  Delayed delivery for messages  Queues and Message Exchanges  Environments and role-based access control Anypoint MQ Features 12
  • 13.  REST API  Large payloads  Message groups  Disaster recovery  Encrypted queues  Usage information  Client management  Anypoint MQ connector  Delayed delivery for messages  Queues and Message Exchanges  Environments and role-based access control Anypoint MQ Features 13
  • 14. Type of Queues  Queue: The queue is a storage area where messages are stored for processing.  Exchange: The exchange is used for broadcasting a messages, like one message to multiple consumers. If any message is send to the exchange, it will be forwarded to all the the queues binded with it.  FIFO (first in, first out): FIFO is a normal queue where messages are stored.The FIFO queue is used when message need to be consumed in order. 14
  • 15. Type of Queues  Queue: The queue is a storage area where messages are stored for processing.  Exchange: The exchange is used for broadcasting a messages, like one message to multiple consumers. If any message is send to the exchange, it will be forwarded to all the the queues binded with it. we cannot bind FIFO queue to exchange.  FIFO (first in, first out): FIFO is a normal queue where messages are stored.The FIFO queue is used when message need to be consumed in order. 15 n=450
  • 16.  The dead-letter queue or (undelivered-message queue) is the queue to which messages are sent if they cannot be routed to their correct destination.  Few things to remember before creating a DLQ. The DLQ and parent queue both need to be:  Same type of queue (standard or FIFO)  Created in the same geographical region  Created in the same environment and owned by the same Anypoint Platform account Dead Letter Queue (DLQ) 16
  • 18. Types of Connectors  Subscriber to subscribe to the queue and listen for the receiving message. (Event source)  Publish to publish the message to the Queue.  Consumer to consume a message from the queue.  Ack to send an acknowledgement to the queue about the successful consumption of the message and delete the message from in-flight status.  Nack to send negative acknowledgement to the queue stating the consumed message is not processed successfully; changes the status of the message from in-flight to in-queue to be consumed again by an available consumer. 18
  • 19. Message Acknowledgment  Automatic: By default, the Subscriber source uses the AUTO acknowledgment mode. With this mode, the messages that the Subscriber source retrieves are acknowledged automatically after message flow processing succeeds.  Immediate: When you use the IMMEDIATE acknowledgment mode, the consumed message is acknowledged right before being dispatched to the Mule flow.  Manual: When you use the MANUAL acknowledgment mode, the application logic decides when to perform the acknowledgment of the message, using the ACK or NACK sources. To perform the manual acknowledgment, you need the value of ack token provided as part of the resulting message attributes. 19
  • 20. Configuration Main elements required:  URL: Destination url.  Client API ID: Id from Client Apps.  Client Secret: Secret from client Apps. 20
  • 21. Circuit Breaker 21  The Subscriber source provides circuit breaking capability, which enables you to control how the connector handles errors that occur while processing a consumed message.  For example, when connecting to an external service, you can use the circuit breaker to handle any downtime of that service. The circuit breaker allows the system to stop making requests and allows the external service to recover under a reduced load. The circuit breaker has three states:  Closed: Normal retrieval and processing of message based on the subscriber strategy.  Half Open: Retrieve a single message and attempt to process it.  Open: Scheduled message fetch are skipped and no more messages are processed.
  • 22. Error Types  ANYPOINT-MQ:ACKING  ANYPOINT-MQ:TIMEOUT  ANYPOINT-MQ:NACKING  ANYPOINT-MQ:PUBLISHING  ANYPOINT-MQ:CONSUMING  ANYPOINT-MQ:CONNECTIVITY  ANYPOINT-MQ:ILLEGAL_BODY  ANYPOINT-MQ:RETRY_EXHAUSTED  ANYPOINT-MQ:DESTINATION_NOT_FOUND 22
  • 23. Anypoint MQ REST APIs Anypoint MQ APIs enable you to use REST to send and receive messages, administer queues and message exchanges, and analyse results. Anypoint MQ provides these APIs:  Anypoint MQ Admin API: This API allows users to manage their destinations.  Anypoint MQ Broker API: This API allows clients to send & receive messages from queues & exchanges.  Anypoint MQ Stats API: This API allows users to view statistics for destinations. 23
  • 24. Anypoint MQ REST API References  Admin API Doc: https://anypoint.mulesoft.com/exchange/portals/anypoint-platform/f1e97bc6-315a-4490-82a7- 23abe036327a.anypoint-platform/anypoint-mq-admin/minor/1.0/console/method/%23503/  Broker API Doc: https://anypoint.mulesoft.com/exchange/portals/anypoint-platform/f1e97bc6-315a-4490-82a7- 23abe036327a.anypoint-platform/anypoint-mq-broker/minor/1.0/console/method/%23482/  Stats API Doc: https://anypoint.mulesoft.com/exchange/portals/anypoint-platform/f1e97bc6-315a-4490-82a7- 23abe036327a.anypoint-platform/anypoint-mq-stats/minor/1.0/console/summary/ 24
  • 25. Limitations of Anypoint MQ  Anypoint MQ cannot be deployed on-premises. Note: We have REST APIs to overcome this limitation.  Max size of payload is limited to 10 MB, cannot process payloads larger than 10 MB. 25
  • 26. Demo
  • 27. Q&A
  • 28. Take a stand ! 28 ● Nominate yourself for the next meetup speaker and suggest a topic as well.
  • 29. 29 ● Share: ○ Tweet using the hashtag #MuleSoftMeetups ○ Join Mysore Group: https://meetups.mulesoft.com/mysore/ ● Feedback: ○ Fill out the survey feedback and suggest topics for upcoming events ○ Contact MuleSoft at meetups@mulesoft.com for ways to improve the program ○ Reach out to Mysore Meetup Leaders (Shubham / Giridhar) to suggest topics for next Meetup What’s next?
  • 30. Get ready to WIN a MuleSoft Voucher from MuleSoft Quiz Time