SlideShare a Scribd company logo
Cache For Community Edition
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/PayloadCacheInterceptor.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
Community edition Cache
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 
Community edition Cache

More Related Content

PPTX
Caching and invalidating with managed store
PPTX
Cache for community edition
PPTX
Timer Interceptor in Mule
PPTX
Running mule standalone
PPTX
Mule soap
PPTX
Scheduling and monitoring with java in mule
PPTX
Initialize database in Mule part2
PPTX
Mule soap
Caching and invalidating with managed store
Cache for community edition
Timer Interceptor in Mule
Running mule standalone
Mule soap
Scheduling and monitoring with java in mule
Initialize database in Mule part2
Mule soap

What's hot (11)

PPTX
Getting anypoint studios all versions
PPTX
Spicing your mule response
PPTX
Deploy apps in standalone with maven
PPTX
Deploying and Running in Mule
PPTX
Accessing jms in mule using groovy
PPTX
Scatter gather in mule
PPTX
Cache for community edition
PPTX
Mule with drools
 
PPTX
Mule quartz
PPTX
Composite source in bound and out-bound
PPTX
Validating a soap request in mule
Getting anypoint studios all versions
Spicing your mule response
Deploy apps in standalone with maven
Deploying and Running in Mule
Accessing jms in mule using groovy
Scatter gather in mule
Cache for community edition
Mule with drools
 
Mule quartz
Composite source in bound and out-bound
Validating a soap request in mule
Ad

Similar to Community edition Cache (20)

PPTX
Mule with stored procedure
PPTX
Stored procedure in Mule
PPTX
Mule stored procedure
PPTX
Mule with stored procedure
PPTX
Mule with stored procedure
PPTX
Stored procedure in mule
PPTX
Schedule and monitor in mule
PPTX
Using spring task scheduler in java in mule
PDF
NodeJS @ ACS
PPTX
Deploying and running in mule standalone
PPTX
Deploying and running in mule standalone
PPTX
Deploying and running in mule standalone
PDF
PDF
Automated shutdown
PPTX
Using spring scheduler mule
PPTX
Deploying and running in mule standalone
PPTX
Deploying and running mule standalone
PPTX
Writing simple web services in java using eclipse editor
PPTX
WebService with vm
Mule with stored procedure
Stored procedure in Mule
Mule stored procedure
Mule with stored procedure
Mule with stored procedure
Stored procedure in mule
Schedule and monitor in mule
Using spring task scheduler in java in mule
NodeJS @ ACS
Deploying and running in mule standalone
Deploying and running in mule standalone
Deploying and running in mule standalone
Automated shutdown
Using spring scheduler mule
Deploying and running in mule standalone
Deploying and running mule standalone
Writing simple web services in java using eclipse editor
WebService with vm
Ad

More from Praneethchampion (20)

PPTX
How to use expression filter
PPT
Mule execution
PPTX
Mule soap
PPTX
PPTX
Mule esb stripe
PPT
Mule security-jaas
PPT
Mule batch processing
PPTX
Send email attachment using smtp in mule esb
PPTX
Mmc rest api user groups
PPTX
Dataweave
PPTX
Mule for each scope header collection
PPTX
Mapping and listing with mule
PPT
Mule oracle connectors
PPT
Mule esb api layer
PPT
Anypoint data gateway
PPT
Mule google connectors
PPT
Mule anypoint exchange
PPT
Mule security
PPTX
Webservice vm in mule
How to use expression filter
Mule execution
Mule soap
Mule esb stripe
Mule security-jaas
Mule batch processing
Send email attachment using smtp in mule esb
Mmc rest api user groups
Dataweave
Mule for each scope header collection
Mapping and listing with mule
Mule oracle connectors
Mule esb api layer
Anypoint data gateway
Mule google connectors
Mule anypoint exchange
Mule security
Webservice vm in mule

Recently uploaded (20)

PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Electronic commerce courselecture one. Pdf
PDF
KodekX | Application Modernization Development
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
A Presentation on Artificial Intelligence
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
Cloud computing and distributed systems.
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Unlocking AI with Model Context Protocol (MCP)
Electronic commerce courselecture one. Pdf
KodekX | Application Modernization Development
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
A Presentation on Artificial Intelligence
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Building Integrated photovoltaic BIPV_UPV.pdf
NewMind AI Weekly Chronicles - August'25 Week I
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
The AUB Centre for AI in Media Proposal.docx
Review of recent advances in non-invasive hemoglobin estimation
Understanding_Digital_Forensics_Presentation.pptx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Advanced methodologies resolving dimensionality complications for autism neur...
20250228 LYD VKU AI Blended-Learning.pptx
Cloud computing and distributed systems.
Network Security Unit 5.pdf for BCA BBA.
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf

Community edition Cache

  • 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/PayloadCacheInterceptor.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 