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
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
irfan1008
 
PPTX
Cache for community edition
irfan1008
 
PPTX
Timer Interceptor in Mule
Anirban Sen Chowdhary
 
PPTX
Running mule standalone
Son Nguyen
 
PPTX
Mule soap
Khasim Saheb
 
PPTX
Scheduling and monitoring with java in mule
Anirban Sen Chowdhary
 
PPTX
Initialize database in Mule part2
Anirban Sen Chowdhary
 
PPTX
Mule soap
D.Rajesh Kumar
 
Caching and invalidating with managed store
irfan1008
 
Cache for community edition
irfan1008
 
Timer Interceptor in Mule
Anirban Sen Chowdhary
 
Running mule standalone
Son Nguyen
 
Mule soap
Khasim Saheb
 
Scheduling and monitoring with java in mule
Anirban Sen Chowdhary
 
Initialize database in Mule part2
Anirban Sen Chowdhary
 
Mule soap
D.Rajesh Kumar
 

What's hot (11)

PPTX
Getting anypoint studios all versions
Anirban Sen Chowdhary
 
PPTX
Spicing your mule response
Anirban Sen Chowdhary
 
PPTX
Deploy apps in standalone with maven
Anirban Sen Chowdhary
 
PPTX
Deploying and Running in Mule
Khasim Saheb
 
PPTX
Accessing jms in mule using groovy
Anirban Sen Chowdhary
 
PPTX
Scatter gather in mule
Khasim Cise
 
PPTX
Cache for community edition
Anirban Sen Chowdhary
 
PPTX
Mule with drools
F K
 
PPTX
Mule quartz
Praneethchampion
 
PPTX
Composite source in bound and out-bound
Son Nguyen
 
PPTX
Validating a soap request in mule
Anirban Sen Chowdhary
 
Getting anypoint studios all versions
Anirban Sen Chowdhary
 
Spicing your mule response
Anirban Sen Chowdhary
 
Deploy apps in standalone with maven
Anirban Sen Chowdhary
 
Deploying and Running in Mule
Khasim Saheb
 
Accessing jms in mule using groovy
Anirban Sen Chowdhary
 
Scatter gather in mule
Khasim Cise
 
Cache for community edition
Anirban Sen Chowdhary
 
Mule with drools
F K
 
Mule quartz
Praneethchampion
 
Composite source in bound and out-bound
Son Nguyen
 
Validating a soap request in mule
Anirban Sen Chowdhary
 
Ad

Viewers also liked (20)

DOC
25 05 2012 Festividades de Cruces de Mayo
Organización política
 
PDF
Attenuation of peak ground acceleration with distance of the june
unam
 
DOCX
Smart art
Marco Bautista
 
PDF
Taller de conciliación
SofyaOro18
 
PDF
Change.org bei der IG Metall Jugend: Welt retten mit Internet
Paula Peters
 
DOCX
Wymagania do sprawdzianu
mzachajczuk
 
PDF
My Favorites
Kj19024
 
PDF
5 krokov, ktoré musíte so zákaznikom prejsť pri retargetingovej kampani
Ponyhouse
 
PPTX
Lenguaje jeroglifico
talentiaalive
 
PDF
NOA, la región del país más optimista sobre el futuro del sector de la constr...
Eduardo Nelson German
 
PPTX
Incontro docenti Elly 10 dicembre 2015
Team Supporto piattaforma Elly UNIPR
 
PPTX
Automatic documentation with mule
Mohammed246
 
PDF
Professor Simeão Ribeiro - 3 quartos no Lourdes - Vendas 31 9525-6737
Kadu Fernandes
 
PPTX
Dissemination plan group14
Guillermo Medrano
 
PDF
DRACULA BOOK
Green Cronopia
 
DOCX
Administración 19
Omar López
 
PPTX
Best Practices in Remote Design
MURAL
 
PPTX
Research and the Library
rfrost811
 
25 05 2012 Festividades de Cruces de Mayo
Organización política
 
Attenuation of peak ground acceleration with distance of the june
unam
 
Smart art
Marco Bautista
 
Taller de conciliación
SofyaOro18
 
Change.org bei der IG Metall Jugend: Welt retten mit Internet
Paula Peters
 
Wymagania do sprawdzianu
mzachajczuk
 
My Favorites
Kj19024
 
5 krokov, ktoré musíte so zákaznikom prejsť pri retargetingovej kampani
Ponyhouse
 
Lenguaje jeroglifico
talentiaalive
 
NOA, la región del país más optimista sobre el futuro del sector de la constr...
Eduardo Nelson German
 
Incontro docenti Elly 10 dicembre 2015
Team Supporto piattaforma Elly UNIPR
 
Automatic documentation with mule
Mohammed246
 
Professor Simeão Ribeiro - 3 quartos no Lourdes - Vendas 31 9525-6737
Kadu Fernandes
 
Dissemination plan group14
Guillermo Medrano
 
DRACULA BOOK
Green Cronopia
 
Administración 19
Omar López
 
Best Practices in Remote Design
MURAL
 
Research and the Library
rfrost811
 
Ad

Similar to Cache for community edition (20)

PPTX
Mule stored procedure
AbdulImrankhan7
 
PPTX
Mule with stored procedure
Mohammed625
 
PPTX
Mule with stored procedure
javeed_mhd
 
PPTX
Stored procedure in Mule
Khasim Saheb
 
PPTX
Mule with stored procedure
mdfkhan625
 
PPTX
Stored procedure in mule
Manav Prasad
 
PPTX
Schedule and monitor in mule
Son Nguyen
 
PPTX
Using spring task scheduler in java in mule
Anirban Sen Chowdhary
 
PDF
NodeJS @ ACS
Mauro Parra-Miranda
 
PPTX
Deploying and running in mule standalone
Mohammed625
 
PPTX
Deploying and running in mule standalone
javeed_mhd
 
PPTX
Deploying and running in mule standalone
AbdulImrankhan7
 
PDF
Meteor
Sergei Panfilov
 
PDF
Automated shutdown
Mario Berend
 
PPTX
Using spring scheduler mule
Son Nguyen
 
PPTX
Deploying and running in mule standalone
Anirban Sen Chowdhary
 
PPTX
Deploying and running mule standalone
mdfkhan625
 
PPTX
Writing simple web services in java using eclipse editor
Santosh Kumar Kar
 
PPTX
Simple web service vm
Mohammed246
 
Mule stored procedure
AbdulImrankhan7
 
Mule with stored procedure
Mohammed625
 
Mule with stored procedure
javeed_mhd
 
Stored procedure in Mule
Khasim Saheb
 
Mule with stored procedure
mdfkhan625
 
Stored procedure in mule
Manav Prasad
 
Schedule and monitor in mule
Son Nguyen
 
Using spring task scheduler in java in mule
Anirban Sen Chowdhary
 
NodeJS @ ACS
Mauro Parra-Miranda
 
Deploying and running in mule standalone
Mohammed625
 
Deploying and running in mule standalone
javeed_mhd
 
Deploying and running in mule standalone
AbdulImrankhan7
 
Automated shutdown
Mario Berend
 
Using spring scheduler mule
Son Nguyen
 
Deploying and running in mule standalone
Anirban Sen Chowdhary
 
Deploying and running mule standalone
mdfkhan625
 
Writing simple web services in java using eclipse editor
Santosh Kumar Kar
 
Simple web service vm
Mohammed246
 

More from Mohammed246 (20)

PPTX
Expression filter in Mule
Mohammed246
 
PPT
Anypoint data gateway
Mohammed246
 
PPT
Oracle connector
Mohammed246
 
PPT
Api Layer
Mohammed246
 
PPTX
Maven part 3
Mohammed246
 
PPTX
Maven part 2
Mohammed246
 
PPTX
Maven part 1
Mohammed246
 
PPTX
Jenkins part 3
Mohammed246
 
PPTX
Jenkins part 2
Mohammed246
 
PPTX
Jenkins Part 1
Mohammed246
 
PPTX
jBPM Connector
Mohammed246
 
PPTX
Java for beginners
Mohammed246
 
PPTX
Scatter gather
Mohammed246
 
PPTX
Velocity in Mule
Mohammed246
 
PPTX
Rabbit Mq in Mule
Mohammed246
 
PPTX
Quartz in Mule
Mohammed246
 
PPTX
Validate soap request in mule
Mohammed246
 
PPTX
Web service vm in mule
Mohammed246
 
PPTX
Xslt in mule
Mohammed246
 
PPTX
Drools in Mule
Mohammed246
 
Expression filter in Mule
Mohammed246
 
Anypoint data gateway
Mohammed246
 
Oracle connector
Mohammed246
 
Api Layer
Mohammed246
 
Maven part 3
Mohammed246
 
Maven part 2
Mohammed246
 
Maven part 1
Mohammed246
 
Jenkins part 3
Mohammed246
 
Jenkins part 2
Mohammed246
 
Jenkins Part 1
Mohammed246
 
jBPM Connector
Mohammed246
 
Java for beginners
Mohammed246
 
Scatter gather
Mohammed246
 
Velocity in Mule
Mohammed246
 
Rabbit Mq in Mule
Mohammed246
 
Quartz in Mule
Mohammed246
 
Validate soap request in mule
Mohammed246
 
Web service vm in mule
Mohammed246
 
Xslt in mule
Mohammed246
 
Drools in Mule
Mohammed246
 

Recently uploaded (20)

PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PDF
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
PPTX
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
PDF
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
PPTX
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PDF
Doc9.....................................
SofiaCollazos
 
PPTX
Simple and concise overview about Quantum computing..pptx
mughal641
 
PDF
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PPTX
The Future of AI & Machine Learning.pptx
pritsen4700
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
PDF
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PDF
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
Doc9.....................................
SofiaCollazos
 
Simple and concise overview about Quantum computing..pptx
mughal641
 
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
The Future of AI & Machine Learning.pptx
pritsen4700
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 

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/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 