SlideShare une entreprise Scribd logo
1  sur  31
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

Contenu connexe

Similaire à 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
 

Similaire à 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,...
 
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 ?
 
Deep Dive into the Pulsar Binary Protocol - Pulsar Virtual Summit Europe 2021
Deep Dive into the Pulsar Binary Protocol - Pulsar Virtual Summit Europe 2021Deep Dive into the Pulsar Binary Protocol - Pulsar Virtual Summit Europe 2021
Deep Dive into the Pulsar Binary Protocol - Pulsar Virtual Summit Europe 2021
 

Plus de 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
 

Plus de MysoreMuleSoftMeetup (20)

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
 
Handling NFRs for the API through API policies (Custom Policies) -Part 2 | Mu...
Handling NFRs for the API through API policies (Custom Policies) -Part 2 | Mu...Handling NFRs for the API through API policies (Custom Policies) -Part 2 | Mu...
Handling NFRs for the API through API policies (Custom Policies) -Part 2 | Mu...
 
Handling NFRs for the API through OoTB API policies Part-1 | MuleSoft Mysore ...
Handling NFRs for the API through OoTB API policies Part-1 | MuleSoft Mysore ...Handling NFRs for the API through OoTB API policies Part-1 | MuleSoft Mysore ...
Handling NFRs for the API through OoTB API policies Part-1 | MuleSoft Mysore ...
 

Dernier

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
ssuserdda66b
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 

Dernier (20)

Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.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