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/PayloadCache
Interceptor.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
Caching and invalidating with managed store
PPTX
Timer Interceptor in Mule
PPTX
Running mule standalone
PPTX
Mule soap
PPTX
Scheduling and monitoring with java in mule
PPTX
Mule soap
PPTX
Initialize database in Mule part2
PPTX
Getting anypoint studios all versions
Caching and invalidating with managed store
Timer Interceptor in Mule
Running mule standalone
Mule soap
Scheduling and monitoring with java in mule
Mule soap
Initialize database in Mule part2
Getting anypoint studios all versions

What's hot (10)

PPTX
Deploy apps in standalone with maven
PPTX
Spicing your mule response
PPTX
Accessing jms in mule using groovy
PPTX
Deploying and Running in Mule
PPTX
Scatter gather in mule
PPTX
Cache for community edition
PPTX
Validating a soap request in mule
PPTX
Mule quartz
PPTX
Mule with drools
 
PPTX
Scatter and gather in mule
Deploy apps in standalone with maven
Spicing your mule response
Accessing jms in mule using groovy
Deploying and Running in Mule
Scatter gather in mule
Cache for community edition
Validating a soap request in mule
Mule quartz
Mule with drools
 
Scatter and gather in mule
Ad

Similar to Cache for community edition (10)

PPTX
Caching strategies in MuleSoft
PPTX
Caching and invalidating with managed store
PPT
Cache scope and strategy
PPT
Cachescope
PPTX
Improving performance with cache scope in mule
PPTX
Mule Cache Scope
ODP
Caching Strategies
PPTX
Meetup bangalore-sept5th 2020 (1)
PPTX
Caching
PDF
Caching in HTTP
Caching strategies in MuleSoft
Caching and invalidating with managed store
Cache scope and strategy
Cachescope
Improving performance with cache scope in mule
Mule Cache Scope
Caching Strategies
Meetup bangalore-sept5th 2020 (1)
Caching
Caching in HTTP
Ad

More from irfan1008 (20)

PPTX
Converting with custom transformer
PPTX
Mule
PPTX
Groovy with Mule
PPTX
Validate Soap Request in Mule
PPTX
WebService with VM Mule
PPTX
Xslt in mule
PPT
Developing Oracle Connector Using Mule
PPTX
Send email attachment using smtp in mule esb
PPT
Mule oracle connectors
PPT
Mule google connectors
PPT
Mule execution
PPT
Mule database-connectors
PPT
Mule batch processing
PPT
Mule architecture
PPT
Mule anypoint exchange
PPTX
Mule soap
PPTX
Mule soa
PPT
Mule security saml
PPT
Mule security jaas
PPTX
Mule for each scope headerc ollection
Converting with custom transformer
Mule
Groovy with Mule
Validate Soap Request in Mule
WebService with VM Mule
Xslt in mule
Developing Oracle Connector Using Mule
Send email attachment using smtp in mule esb
Mule oracle connectors
Mule google connectors
Mule execution
Mule database-connectors
Mule batch processing
Mule architecture
Mule anypoint exchange
Mule soap
Mule soa
Mule security saml
Mule security jaas
Mule for each scope headerc ollection

Recently uploaded (20)

PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
A Presentation on Artificial Intelligence
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
Cloud computing and distributed systems.
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Empathic Computing: Creating Shared Understanding
PDF
Encapsulation theory and applications.pdf
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
cuic standard and advanced reporting.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
Building Integrated photovoltaic BIPV_UPV.pdf
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Review of recent advances in non-invasive hemoglobin estimation
Diabetes mellitus diagnosis method based random forest with bat algorithm
A Presentation on Artificial Intelligence
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
20250228 LYD VKU AI Blended-Learning.pptx
Cloud computing and distributed systems.
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Empathic Computing: Creating Shared Understanding
Encapsulation theory and applications.pdf
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Agricultural_Statistics_at_a_Glance_2022_0.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Spectral efficient network and resource selection model in 5G networks
cuic standard and advanced reporting.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Advanced methodologies resolving dimensionality complications for autism neur...

Cache for community edition

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