SlideShare a Scribd company logo
By Anirban Sen Chowdhary
Timer Interceptor in Mule
.
Here I will show you how ……
We can use a Mule component called timer-interceptor in our
flow
With a single line of code in our flow :-
<timer-interceptor/>
So, we can take following Mule flow to demonstrate :-
Now this is a complex web service that uses cache mechanism
in the flow and will fetch some data from the database
Now when we execute this flow, we will get the above in our console
Now since this flow uses a cache mechanism in the flow, if we
hit the service again , it will uses cache to fetch it’s data and it
will not hit the actual database.
So, in this case the execution time will be less as follow :-
Now when we execute this flow, we will get the above in our console
So, this is very simple, we just need to put the following
code in our flow to get the execution time:-
<timer-interceptor />
Hope you enjoyed the simple yet an amazing trick in Mule
Timer Interceptor in Mule

More Related Content

PPTX
Spicing your mule response
PPTX
Deploy apps in standalone with maven
PPTX
Accessing jms in mule using groovy
PPTX
Scheduling and monitoring with java in mule
PPTX
Deploying and running mule standalone
PPTX
Running mule standalone
PPTX
Deploying and Running in Mule
PPTX
Getting anypoint studios all versions
Spicing your mule response
Deploy apps in standalone with maven
Accessing jms in mule using groovy
Scheduling and monitoring with java in mule
Deploying and running mule standalone
Running mule standalone
Deploying and Running in Mule
Getting anypoint studios all versions

What's hot (19)

PPTX
Stored procedure in Mule
PPTX
Mule esb How to convert from Json to Xml in 5 minutes
PPTX
Mule with velocity
PPTX
Scatter and gather in mule
PPTX
Mule with stored procedure
PPTX
Soap In Mule
PPTX
Mule soap
PPTX
Mule esb soap_service
PPTX
Using ajax in mule
PPTX
Mule quartz
PPTX
Groovy in Mule
PPTX
Mule soap
PPTX
Mule with drools
 
PPTX
Creating dynamic json in Mule
 
PPTX
Cache for community edition
PPTX
Validating a soap request in mule
PPTX
Initialize database in Mule part2
PPTX
Web application with mule
PPTX
Mule esb - How to make CRUD operations to a MySql Database in 5 minutes
Stored procedure in Mule
Mule esb How to convert from Json to Xml in 5 minutes
Mule with velocity
Scatter and gather in mule
Mule with stored procedure
Soap In Mule
Mule soap
Mule esb soap_service
Using ajax in mule
Mule quartz
Groovy in Mule
Mule soap
Mule with drools
 
Creating dynamic json in Mule
 
Cache for community edition
Validating a soap request in mule
Initialize database in Mule part2
Web application with mule
Mule esb - How to make CRUD operations to a MySql Database in 5 minutes
Ad

Viewers also liked (20)

PPTX
Timer Interceptor in Mule part 2
PPTX
Cache for community edition
PPTX
Mule Expression language
PPTX
Automatic documentation with mule
PPTX
Mule accessing multiple database in parallel
PPTX
Accessing jms in mule using groovy
PPTX
Mule with composite source
PPTX
Generating Documentation for Mule ESB Application
PPT
Mule deploying a cloud hub application
PPT
Mule connectors
PPTX
Mule routing and filters
PPT
Overview of Mule
PPTX
Mule esb How to convert from CSV to Json in 5 minutes
PPTX
Mule Groovy component
PPTX
Mule idempotent filter and Object Store
PPTX
MuleSoft ESB - CSV File to Database
PPTX
Accessing jms in mule using groovy
PPTX
Demo on Mule ESB Facebook Connector
PPTX
Filtering jms messages with mule
PPTX
Mule esb transformers
Timer Interceptor in Mule part 2
Cache for community edition
Mule Expression language
Automatic documentation with mule
Mule accessing multiple database in parallel
Accessing jms in mule using groovy
Mule with composite source
Generating Documentation for Mule ESB Application
Mule deploying a cloud hub application
Mule connectors
Mule routing and filters
Overview of Mule
Mule esb How to convert from CSV to Json in 5 minutes
Mule Groovy component
Mule idempotent filter and Object Store
MuleSoft ESB - CSV File to Database
Accessing jms in mule using groovy
Demo on Mule ESB Facebook Connector
Filtering jms messages with mule
Mule esb transformers
Ad

Similar to Timer Interceptor in Mule (20)

PPTX
Interceptor in mule
PPTX
Community edition Cache
PPTX
Cache for community edition
PPTX
Cache community edition
PPTX
Cache for community edition
PPTX
Cache for community edition
PPTX
Cache for community edition
PPTX
Cache for community edition
 
PPTX
Cache for community edition
PPTX
Cache for community edition
PPTX
Stored procedure in mule
PPTX
Mule with stored procedure
PPTX
Mule stored procedure
PPTX
Mule with stored procedure
PPTX
Using spring task scheduler in java in mule
PPTX
Schedule and monitor in mule
PPTX
Mule message enricher
PPTX
Deploying and running in mule standalone
PPTX
Deploying and running in mule standalone
PPTX
Deploying and running in mule standalone
Interceptor in mule
Community edition Cache
Cache for community edition
Cache community edition
Cache for community edition
Cache for community edition
Cache for community edition
Cache for community edition
 
Cache for community edition
Cache for community edition
Stored procedure in mule
Mule with stored procedure
Mule stored procedure
Mule with stored procedure
Using spring task scheduler in java in mule
Schedule and monitor in mule
Mule message enricher
Deploying and running in mule standalone
Deploying and running in mule standalone
Deploying and running in mule standalone

More from Anirban Sen Chowdhary (20)

PPTX
Change the game with Game changer
PPTX
Ring central desktop app overview
PPTX
Overview in ringcentral digital line
PPTX
Some basics with ring central
PPTX
Ring central and python
PPTX
RingCentral application development overview
PPTX
Cloze connect ringcentral
PPTX
Overview on ring central errors part 4
PPTX
Setting up your ring central sandbox in steps
PPTX
Overview on ring central errors: part 2
PPTX
Overview on ring central errors
PPTX
Call recording overview ring central
PPTX
Ring central engaging with amazon alexa
PPTX
How ring central sdk changing the game
PPTX
When ring central connect salesforce
PPTX
Mule 4 connecting ring central
PPTX
Ring central sdk
PPTX
Ring central with okta
PPTX
Ring central connecting salesforce overview
PPTX
Ring central call logs overview (part 2)
Change the game with Game changer
Ring central desktop app overview
Overview in ringcentral digital line
Some basics with ring central
Ring central and python
RingCentral application development overview
Cloze connect ringcentral
Overview on ring central errors part 4
Setting up your ring central sandbox in steps
Overview on ring central errors: part 2
Overview on ring central errors
Call recording overview ring central
Ring central engaging with amazon alexa
How ring central sdk changing the game
When ring central connect salesforce
Mule 4 connecting ring central
Ring central sdk
Ring central with okta
Ring central connecting salesforce overview
Ring central call logs overview (part 2)

Recently uploaded (20)

PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Electronic commerce courselecture one. Pdf
PPTX
Big Data Technologies - Introduction.pptx
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Modernizing your data center with Dell and AMD
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Encapsulation theory and applications.pdf
PPTX
A Presentation on Artificial Intelligence
PDF
Empathic Computing: Creating Shared Understanding
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Unlocking AI with Model Context Protocol (MCP)
Network Security Unit 5.pdf for BCA BBA.
Spectral efficient network and resource selection model in 5G networks
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Electronic commerce courselecture one. Pdf
Big Data Technologies - Introduction.pptx
Understanding_Digital_Forensics_Presentation.pptx
Modernizing your data center with Dell and AMD
NewMind AI Monthly Chronicles - July 2025
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
The AUB Centre for AI in Media Proposal.docx
Review of recent advances in non-invasive hemoglobin estimation
Encapsulation theory and applications.pdf
A Presentation on Artificial Intelligence
Empathic Computing: Creating Shared Understanding
MYSQL Presentation for SQL database connectivity
Unlocking AI with Model Context Protocol (MCP)

Timer Interceptor in Mule

  • 1. By Anirban Sen Chowdhary
  • 3. .
  • 4. Here I will show you how ……
  • 5. We can use a Mule component called timer-interceptor in our flow With a single line of code in our flow :- <timer-interceptor/>
  • 6. So, we can take following Mule flow to demonstrate :-
  • 7. Now this is a complex web service that uses cache mechanism in the flow and will fetch some data from the database Now when we execute this flow, we will get the above in our console
  • 8. Now since this flow uses a cache mechanism in the flow, if we hit the service again , it will uses cache to fetch it’s data and it will not hit the actual database. So, in this case the execution time will be less as follow :- Now when we execute this flow, we will get the above in our console
  • 9. So, this is very simple, we just need to put the following code in our flow to get the execution time:- <timer-interceptor />
  • 10. Hope you enjoyed the simple yet an amazing trick in Mule