SlideShare a Scribd company logo
By Anirban Sen Chowdhary
We have seen examples on Mule Cache mechanism with Cache Scope. But this time we will
see implementing Cache for Mule Community Edition.
Mule Community Edition doesn’t have the Cache Scope as Mule Enterprise Edition, so to
implement Cache in Community Edition we require Custom Interceptor.
You can already refer https://github.com/ddossot/mule-in-action-
2e/blob/master/chapter12/src/main/java/com/prancingdonkey/interceptor/PayloadCacheI
nterceptor.java which shows implementing Cache in Community Edition by David Dassot.
In my demonstration I have modified the code and implemented on the top of it with
additional Filter Expression
Cache for community edition
To use Cache with Mule we have to construct our flow in following way :-
You can see the flow is divided into 2 parts and is connected by VM component. You
can see we have used Custom Interceptor to implement Cache in this Community
Edition
Our Mule config will be as follow:-
You can see we are using our Custom interceptor implemented and a spring property
filterExpression which will filter the expression we want to implement .
Our Custom interceptor Java class:-
In next step we will be running and testing the
application. This web service will interact with database
retrieve a row from the database and show the row value
in the SOAP response.
Here how we will test the web service :-
You can see that we have used SoapUI to test the web service. Now
when we hit the service, you can see in the SOAP request, it takes id
as input and then fetches all the data from the database for that id.
Now, what we will do is manually deleting the entire row
from the database. In my case, I have used sql server
and deleted the row from the table using a SQL query:-
With this in place, if we again hit the service, we will get
the same response as we got earlier:-
And that means our Cache is working and it’s responding from the Cache and
not hitting the actual Database !!! So our Custom interceptor is implementing
the Cache !!
So you can see that we have implemented the Cache for the Community
Edition which has the feature of filtering the expression like the Cache scope
of Enterprise Edition.
So, you can implement your own Cache using Custom Interceptor.
In my next slide I will bring some other techniques in Mule
implementation .
Hope you have enjoyed this simpler version.
Keep sharing your knowledge and let our Mule community grow 
Cache for community edition

More Related Content

PPTX
Accessing Mule variables in groovy
PPTX
Groovy example in mule
PPTX
Groovy with Mule
PPTX
Simple groovy example in mule
PPTX
Mule message enricher
PPTX
Encrypting/Decrypting mule
PPTX
Compressing & decompressing in mule
PPTX
Caching and invalidating with managed store
Accessing Mule variables in groovy
Groovy example in mule
Groovy with Mule
Simple groovy example in mule
Mule message enricher
Encrypting/Decrypting mule
Compressing & decompressing in mule
Caching and invalidating with managed store

What's hot (12)

PPTX
Accessing jms in mule using groovy
PPTX
Groovy in Mule
PPTX
Scatter and gather in mule
PPTX
Deploying and Running in Mule
PPTX
Stored procedure in Mule
PPTX
Cache for community edition
PPTX
Initialize database in Mule part2
PPTX
Caching and invalidating with managed store
PPT
Simple Java component in Mule
PPTX
PPTX
Getting anypoint studios all versions
PPTX
Idempotent filter in Mule
 
Accessing jms in mule using groovy
Groovy in Mule
Scatter and gather in mule
Deploying and Running in Mule
Stored procedure in Mule
Cache for community edition
Initialize database in Mule part2
Caching and invalidating with managed store
Simple Java component in Mule
Getting anypoint studios all versions
Idempotent filter in Mule
 
Ad

Viewers also liked (10)

PPTX
Timer Interceptor in Mule
PPTX
Mule accessing multiple database in parallel
PPTX
Automatic documentation with mule
PPTX
Accessing jms in mule using groovy
PPTX
Mule with composite source
PPTX
Mule Groovy component
PPTX
Mule idempotent filter and Object Store
PPTX
Accessing jms in mule using groovy
PPTX
Scheduling and monitoring with java in mule
PPTX
Filtering jms messages with mule
Timer Interceptor in Mule
Mule accessing multiple database in parallel
Automatic documentation with mule
Accessing jms in mule using groovy
Mule with composite source
Mule Groovy component
Mule idempotent filter and Object Store
Accessing jms in mule using groovy
Scheduling and monitoring with java in mule
Filtering jms messages with mule
Ad

Similar to Cache for community edition (16)

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 community edition
PPTX
Cache for community edition
PPTX
Community edition Cache
PPTX
Cache for community edition
PPTX
Caching strategies in MuleSoft
PPT
Cache scope and strategy
PPT
Cachescope
PPTX
Improving performance with cache scope in mule
ODP
Caching Strategies
PPTX
Mule Cache Scope
PPTX
Caching
Cache for community edition
Cache for community edition
Cache for community edition
 
Cache for community edition
Cache for community edition
Cache community edition
Cache for community edition
Community edition Cache
Cache for community edition
Caching strategies in MuleSoft
Cache scope and strategy
Cachescope
Improving performance with cache scope in mule
Caching Strategies
Mule Cache Scope
Caching

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
Review of recent advances in non-invasive hemoglobin estimation
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Cloud computing and distributed systems.
PPT
Teaching material agriculture food technology
PDF
cuic standard and advanced reporting.pdf
PDF
Empathic Computing: Creating Shared Understanding
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Encapsulation theory and applications.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Approach and Philosophy of On baking technology
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Unlocking AI with Model Context Protocol (MCP)
Review of recent advances in non-invasive hemoglobin estimation
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Cloud computing and distributed systems.
Teaching material agriculture food technology
cuic standard and advanced reporting.pdf
Empathic Computing: Creating Shared Understanding
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Building Integrated photovoltaic BIPV_UPV.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation
Encapsulation theory and applications.pdf
Machine learning based COVID-19 study performance prediction
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
“AI and Expert System Decision Support & Business Intelligence Systems”
Approach and Philosophy of On baking technology
Reach Out and Touch Someone: Haptics and Empathic Computing
Unlocking AI with Model Context Protocol (MCP)

Cache for community edition

  • 1. By Anirban Sen Chowdhary
  • 2. We have seen examples on Mule Cache mechanism with Cache Scope. But this time we will see implementing Cache for Mule Community Edition. Mule Community Edition doesn’t have the Cache Scope as Mule Enterprise Edition, so to implement Cache in Community Edition we require Custom Interceptor. You can already refer https://github.com/ddossot/mule-in-action- 2e/blob/master/chapter12/src/main/java/com/prancingdonkey/interceptor/PayloadCacheI nterceptor.java which shows implementing Cache in Community Edition by David Dassot. In my demonstration I have modified the code and implemented on the top of it with additional Filter Expression
  • 4. To use Cache with Mule we have to construct our flow in following way :- You can see the flow is divided into 2 parts and is connected by VM component. You can see we have used Custom Interceptor to implement Cache in this Community Edition
  • 5. Our Mule config will be as follow:- You can see we are using our Custom interceptor implemented and a spring property filterExpression which will filter the expression we want to implement .
  • 6. Our Custom interceptor Java class:-
  • 7. In next step we will be running and testing the application. This web service will interact with database retrieve a row from the database and show the row value in the SOAP response.
  • 8. Here how we will test the web service :- You can see that we have used SoapUI to test the web service. Now when we hit the service, you can see in the SOAP request, it takes id as input and then fetches all the data from the database for that id.
  • 9. Now, what we will do is manually deleting the entire row from the database. In my case, I have used sql server and deleted the row from the table using a SQL query:-
  • 10. With this in place, if we again hit the service, we will get the same response as we got earlier:- And that means our Cache is working and it’s responding from the Cache and not hitting the actual Database !!! So our Custom interceptor is implementing the Cache !!
  • 11. So you can see that we have implemented the Cache for the Community Edition which has the feature of filtering the expression like the Cache scope of Enterprise Edition. So, you can implement your own Cache using Custom Interceptor.
  • 12. In my next slide I will bring some other techniques in Mule implementation . Hope you have enjoyed this simpler version. Keep sharing your knowledge and let our Mule community grow 