{"id":514854,"date":"2022-05-27T08:24:51","date_gmt":"2022-05-27T06:24:51","guid":{"rendered":"https:\/\/www.devoteam.com\/expert-view\/how-to-apply-caching-strategy-part-2\/"},"modified":"2022-05-27T08:24:51","modified_gmt":"2022-05-27T06:24:51","slug":"how-to-apply-caching-strategy-part-2","status":"publish","type":"expert-view","link":"https:\/\/devoteam.info\/be\/expert-view\/how-to-apply-caching-strategy-part-2\/","title":{"rendered":"Blog Series, Part II: How to apply caching strategy in a Mule4 project?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><em>In my previous post, I briefly introduced what is cache and how it works. <\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>In this post, we will understand the&nbsp;importance of the&nbsp;best strategy to implement it in a Mule project and the validity of the data being cached. Bear in mind that a successful cache results in a high hit rate which means the data was present when fetched. A cache miss occurs when the data fetched was not present in the cache.<\/em><\/p>\n\n\n\n<h3 class=\"has-cyan-bluish-gray-background-color has-background wp-block-heading\">Applying Caching strategy in a Mule Project<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This section of this blog is a sequel to my previous blog post about the advantages and disadvantages of applying caching in Mule4. If you have decided to deep dive here, I will demonstrate how to accomplish it inside a Mule4 project.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this post, I will demonstrate how to accomplish caching <strong>inside<\/strong> the Mule application.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In my next post, I will demonstrate how to apply a HTTP Caching Policy from CloudHub.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once you identify the flow or components where caching will be applied, follow the steps mentioned below.&nbsp;&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/hc8onJWPbCZYzU7GHe5pVyLLXTQqaOkMWxV_oDNENeR1oP3KsVRpybch75WyQ6lyL6Mt0p_xgmHX_Csyns_dMGUJ4cAzywVEtFOPQ9aKXp5ZFMEQQPEfJZZOJPk42q579LCBLqpLhTaG-gY1PA.png\" alt=\"\" width=\"718\" height=\"169\" \/><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Wrap in all Message Processors. \u201cCache\u201d component.&nbsp;<\/strong><\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/S-5oLa3UMShQ5sLxhO-yd6RrjAlT80oVCL14k1djEnUx39qD-q4y3X7KW9piv4MPr3I-NYn7uJCDFu7hAzVIaZdQwvObRuCEeaUGDk4bwGc3AiNnA5jJ6XV4tLiN2s4urSi-s2HnUKd8E4clcg.png\" alt=\"\" width=\"500\" height=\"458\" \/><figcaption>Api+Config<\/figcaption><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Apply the configuration as expected for your use case. (Default Caching Strategy, Reference to a strategy)<\/strong> <\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/FbCTQCndis3Qv48dO2BQzd2PWABApSjwoSa3IfBi7KTcv7zbs-NWycNLHn9maRezoBSHxeOqvCS6foAe_GSFjL6FX7JMy84VO_OCBjJYss-Azq_mBqX9DeaIqAlnP04VUVggIjq27ahdtc0zQ.png\" alt=\"\" width=\"790\" height=\"276\" \/><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Reference to a strategy according to the requirements<\/strong><\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/R3Xh36xel-6w4KFQKiBlUYbisVsG0qO4oqh8_Nlzih5VCr92f1Lo2lvW8ytwjlMQRmTOVdgM0nBcdqrFDI3yt9cYu_fL2lOKwmrOn2BgdqDe1NGtLLmDdJ8f0PgHucMqLfPN66DFOWsg_WcqQ.png\" alt=\"\" width=\"783\" height=\"273\" \/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/I9ZwVbyiKzLCxst2nJg4J90vRoV0HehMlnhDpHtREn-3EZgSyvOIU9t0CJQUy5Uqg4dHpVwHKwSGUJ1XVptxU064vVd3PjZBpdkr2Ds2shELssM2SiJdH3p0S2gz-GjH-jd8bDO_EF8fYXnX4A.png\" alt=\"\" width=\"773\" height=\"658\" \/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/YAbbf1L-lND4zrLOzMzwJyDGIUA7J_KLJ0j7bh0uFt0RNv2o2s1eVsFhkbIrmzbxOMh4M46iCAmfQkd1mVt4fqsUYxt-A6_MKASAMo0fqLl9_7xZkV6NBWAScVHU9-h4WHKheekY5Ila-At3kw.png\" alt=\"\" width=\"776\" height=\"260\" \/><\/figure><\/div>\n\n\n\n<h3 class=\"has-cyan-bluish-gray-background-color has-background wp-block-heading\">Verifying the Caching configuration<\/h3>\n\n\n\n<h5 class=\"wp-block-heading\">Testing endpoint locally<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Deploy application&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/BoOGIP7PthJ5zgHWML1KKBMVEridz_jaB6y4K0LTJaeGb8C8e3dve74NhIzGKFiIJJHD0emtB3_vFHC1IVzzhcXhs7o_8zj-eeR7fZE-fnyWD1h-yP7OABDRsBcVQEMtUeZr1Nag3qO40meWOQ.png\" alt=\"\" width=\"776\" height=\"256\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Access to console<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/rNRtPcan_q4mjVT49w3v6HnA0E3wp9hYpFtI2EVqndq2wXgnyCpUtm-W80-9bLh-YLf0hCgvFMm3R7CUOKOEewCphzL70BtlGT0SpjCleZU7C6Jns3VHVe-JlRacC1X7aabreeL0XubjZv0aPA.png\" alt=\"\" width=\"634\" height=\"319\" \/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/6oe8j1wWsqPNP0K6K45FPIeE8Ylo-2HEp1PYIH-H5OAoU4Lce5Ntzkp9fyrjKZoS5GeBdYJy0h7sFG0UvbxXZUPnN8gxYXNm6WVUaRVVlDfSSmVsOGc_xCBukZfYIaGvf7c-cHQ-5w17lISf3Q.png\" alt=\"\" width=\"623\" height=\"573\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Assessing cache key scope<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">INFO&nbsp; 2022-03-02 15:54:20,831 [[MuleRuntime].uber.03: [emergency_api].get:emergency_number(code):api-config.CPU_LITE @76b41172] [processor: get:emergency_number(code):api-config\/processors\/0; event: 05f2c230-9a41-11ec-9801-f84d8965f96a] org.mule.runtime.core.internal.processor.LoggerMessageProcessor: get:emergency_number(code):api-config:MAIN-ENTRY<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">INFO&nbsp; 2022-03-02 15:54:21,698 [[MuleRuntime].uber.03: [emergency_api].get:emergency_number(code):api-config.CPU_LITE @76b41172] [processor: get:emergency_number(code):api-config\/processors\/1\/processors\/2; event: 05f2c230-9a41-11ec-9801-f84d8965f96a] org.mule.runtime.core.internal.processor.LoggerMessageProcessor: get:emergency_number(code):api-config: FR TIME-REQUEST 21<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">INFO&nbsp; 2022-03-02 15:54:21,737 [[MuleRuntime].uber.01: cachingStrategy_null @197f28ca] [processor: get:emergency_number(code):api-config\/processors\/2; event: 05f2c230-9a41-11ec-9801-f84d8965f96a] org.mule.runtime.core.internal.processor.LoggerMessageProcessor: get:emergency_number(code):api-config:MAIN-EXIT<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">INFO&nbsp; 2022-03-02 15:56:40,652 [[MuleRuntime].uber.03: [emergency_api].get:emergency_number(code):api-config.CPU_LITE @76b41172] [processor: get:emergency_number(code):api-config\/processors\/0; event: 59784a10-9a41-11ec-9801-f84d8965f96a] org.mule.runtime.core.internal.processor.LoggerMessageProcessor: get:emergency_number(code):api-config:MAIN-ENTRY<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">INFO&nbsp; 2022-03-02 15:56:40,929 [[MuleRuntime].uber.03: [emergency_api].get:emergency_number(code):api-config.CPU_LITE @76b41172] [processor: get:emergency_number(code):api-config\/processors\/1\/processors\/2; event: 59784a10-9a41-11ec-9801-f84d8965f96a] org.mule.runtime.core.internal.processor.LoggerMessageProcessor: get:emergency_number(code):api-config: ES TIME-REQUEST 40INFO&nbsp; 2022-03-02 15:56:40,944 [[MuleRuntime].uber.01: cachingStrategy_null @197f28ca] [processor: get:emergency_number(code):api-config\/processors\/2; event: 59784a10-9a41-11ec-9801-f84d8965f96a] org.mule.runtime.core.internal.processor.LoggerMessageProcessor: get:emergency_number(code):api-config:MAIN-EXIT<\/p>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/oyuDG7_aCyRwpkLfotzvbtr88CNVPhMUzAAMpX3Igyu9gQYUWqGXHzBh2nI_bvMT_n3_jyeecbBh6UzX-ZrOvrvBoVj0swwnEmJFGZj7eNKiecBgUiupjXeo4ihma8wbWJQCfg4EMgplPN1Y2Q.png\" width=\"602\" height=\"553\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Second attempt to retrieve&nbsp;<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">INFO&nbsp; 2022-03-02 15:54:20,831 [[MuleRuntime].uber.03: [emergency_api].get:emergency_number(code):api-config.CPU_LITE @76b41172] [processor: get:emergency_number(code):api-config\/processors\/0; event: 05f2c230-9a41-11ec-9801-f84d8965f96a] org.mule.runtime.core.internal.processor.LoggerMessageProcessor: get:emergency_number(code):api-config:MAIN-ENTRY<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">INFO&nbsp; 2022-03-02 15:54:21,698 [[MuleRuntime].uber.03: [emergency_api].get:emergency_number(code):api-config.CPU_LITE @76b41172] [processor: get:emergency_number(code):api-config\/processors\/1\/processors\/2; event: 05f2c230-9a41-11ec-9801-f84d8965f96a] org.mule.runtime.core.internal.processor.LoggerMessageProcessor: get:emergency_number(code):api-config: FR TIME-REQUEST 21<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">INFO&nbsp; 2022-03-02 15:54:21,737 [[MuleRuntime].uber.01: cachingStrategy_null @197f28ca] [processor: get:emergency_number(code):api-config\/processors\/2; event: 05f2c230-9a41-11ec-9801-f84d8965f96a] org.mule.runtime.core.internal.processor.LoggerMessageProcessor: get:emergency_number(code):api-config:MAIN-EXIT<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">INFO&nbsp; 2022-03-02 15:56:40,652 [[MuleRuntime].uber.03: [emergency_api].get:emergency_number(code):api-config.CPU_LITE @76b41172] [processor: get:emergency_number(code):api-config\/processors\/0; event: 59784a10-9a41-11ec-9801-f84d8965f96a] org.mule.runtime.core.internal.processor.LoggerMessageProcessor: get:emergency_number(code):api-config:MAIN-ENTRYINFO&nbsp; 2022-03-02 15:56:40,929 [[MuleRuntime].uber.03: [emergency_api].get:emergency_number(code):api-config.CPU_LITE @76b41172] [processor: get:emergency_number(code):api-config\/processors\/1\/processors\/2; event: 59784a10-9a41-11ec-9801-f84d8965f96a]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">org.mule.runtime.core.internal.processor.LoggerMessageProcessor: get:emergency_number(code):api-config: ES TIME-REQUEST 40<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">INFO&nbsp; 2022-03-02 15:56:40,944 [[MuleRuntime].uber.01: cachingStrategy_null @197f28ca] [processor: get:emergency_number(code):api-config\/processors\/2; event: 59784a10-9a41-11ec-9801-f84d8965f96a] org.mule.runtime.core.internal.processor.LoggerMessageProcessor: get:emergency_number(code):api-config:MAIN-EXIT<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">INFO&nbsp; 2022-03-02 15:58:15,451 [[MuleRuntime].uber.01: [emergency_api].get:emergency_number(code):api-config.CPU_LITE @76b41172] [processor: get:emergency_number(code):api-config\/processors\/0; event: 91fb25b0-9a41-11ec-9801-f84d8965f96a] org.mule.runtime.core.internal.processor.LoggerMessageProcessor: get:emergency_number(code):api-config:MAIN-ENTRY<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">INFO&nbsp; 2022-03-02 15:58:15,504 [[MuleRuntime].uber.01: [emergency_api].get:emergency_number(code):api-config.CPU_LITE @76b41172] [processor: get:emergency_number(code):api-config\/processors\/2; event: 91fb25b0-9a41-11ec-9801-f84d8965f96a] org.mule.runtime.core.internal.processor.LoggerMessageProcessor: get:emergency_number(code):api-config:MAIN-EXIT<\/p>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"553\" src=\"https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/fnwB9Jr1euOCiXqTDhUC9Tc-rrzeh7DaCtTay2r0g_8XDqYdTWKYDKmRCtSzy4ECudDCTl_ayLXicXrCrqchSjF8TG2pJ8OMXswMdLcwMQE93o06DwuHBr5XNIRN06kUOWAt1wagH28VgUBeDg.png\"><\/p>\n\n\n\n<h3 class=\"has-cyan-bluish-gray-background-color has-background wp-block-heading\">Testing endpoint in CloudHub<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Access to console<\/strong><\/p>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/z86bf3Ytbc2UAftR5_4pDaZoLz_ZrLWTT9eNAXmhJeLs3ED9pETvulXTvIRkQfAG0RnF-2BWQjeyr3pjx4ZukDuUEf_Vpb8NOGbVWurVpoTh4yeeUGt1QyDbVz2axBpYrC43OrblX_2mqfoIug.png\" width=\"564\" height=\"414\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Try it&nbsp;<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/MdsZR_qQQGAajr84HbONCqg08PoXxZAyUH5QkQpMOtKs4TqHL4tJA1Jsb81J7ZpBeambWJC3_J39t5y-4tsmgPJElkzj8zjgKOC91KzKD8BC2u0Zw7kO-zK50nw3E3PWZQrP12C2zUsbWKt48Q.png\" alt=\"\" width=\"537\" height=\"672\" \/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/cPstb7fCcTqXs0v3c1tuG80ybMkhtIjRFnJaCwi8HjdEoyumXdgHtTdqfG552b449BzwPcXrNM69qWgbLCqsVpAbwuwoSSvaI70ZTjox7iHshuRk4PZS8njYZIlZyBqhtKnZIoNXFmfeDM7ecA.png\" alt=\"\" width=\"682\" height=\"91\" \/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img decoding=\"async\" src=\"https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/5zOEiYAZWMKzfLtDDWLQ_bul2yEe4oBs7sgVx503wTjZpWzKyM_mbuEYBopG4EHaGek8uViF9f8PEtSraTFkOgjm_nFKLccsCuAgoKD8C7booLrHHhn4HF9ifyL_9dG53DDE9UwUUXapkdNLAA.png\" alt=\"\" width=\"-426\" height=\"-305\" \/><\/figure><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">Second attempt to retrieve cache response<\/h4>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"211\" src=\"https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/aTcX0sPjyOFPXOBAFx26-kNoGt2uVQ7adSzZeM1D6AEefz4Ajds3bEMU0cARmENqdtslBeAjoQqu9fEBXVsd4slzJ6wyhveA7G97iMYVqXNSKFIOSY3fHrM9Z55ToqBVjgsCFBHt9Hdbl4xZZw.png\"><\/p>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"429\" src=\"https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/npMMl62AjwRHPVy0m1lAWC5w3p2n5CP1EK5XP5WWsxe9SZfnMPkqn2xoXl0R_WGCiPQn4FcnkXIa0lhAC_lU3NlxFsy7Z4caQ7r_Ar4QyjlNmQzxZfbA6J00o8UVNmFz-e5shCOZn2DrkB37Rg.png\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you are interested in working with Devoteam S Platform, click <a href=\"https:\/\/splatform.devoteam.com\/join-us\/\">here!<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In my previous post, I briefly introduced what is cache and how it works. In this post, we will understand the&nbsp;importance of the&nbsp;best strategy to implement it in a Mule project and the validity of the data being cached. Bear in mind that a successful cache results in a high hit rate which means the [&hellip;]<\/p>\n","protected":false},"featured_media":378564,"template":"","categories":[],"tags":[3355,1732,3356,3626,4215,1786,3580,3357,3358,3359,4216,2266,2482,3627,3112],"industry":[],"class_list":["post-514854","expert-view","type-expert-view","status-publish","has-post-thumbnail","hentry","tag-api-be","tag-business-platforms-be","tag-communicaton-be","tag-connectivity-be","tag-education-be","tag-financial-services-be","tag-healthcare-sciences-be","tag-media-entertainment-be","tag-mulesoft-be","tag-mulesoft-anypoint-be","tag-non-profit-be","tag-public-sector-be","tag-retail-be","tag-salesforce-be","tag-technology-be"],"acf":[],"cards":"\n\t<div class=\"single-post-card\">\n\n\t\t<figure class=\"wp-block-post-featured-image\"><a href=\"https:\/\/devoteam.info\/be\/expert-view\/how-to-apply-caching-strategy-part-2\/\" target=\"_self\" ><img width=\"1041\" height=\"1281\" src=\"https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/pexels-flo-maderebner-623919-e1634904696434.jpg\" class=\"attachment-post-thumbnail size-post-thumbnail wp-post-image\" alt=\"Blog Series, Part II: How to apply caching strategy in a Mule4 project?\" style=\"aspect-ratio:4\/3;width:100%;object-fit:cover;\" decoding=\"async\" loading=\"lazy\" srcset=\"https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/pexels-flo-maderebner-623919-e1634904696434.jpg 1041w, https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/pexels-flo-maderebner-623919-e1634904696434-244x300.jpg 244w, https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/pexels-flo-maderebner-623919-e1634904696434-832x1024.jpg 832w, https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/pexels-flo-maderebner-623919-e1634904696434-768x945.jpg 768w\" sizes=\"auto, (max-width: 1041px) 100vw, 1041px\" \/><\/a><\/figure>\n\n\t\t\n\t\t<div class=\"wp-block-group is-vertical is-layout-flex wp-container-core-group-is-layout-43282307 wp-block-group-is-layout-flex\">\n\t<p style=\"font-style:normal;font-weight:700\" class=\"has-link-color wp-elements-1 wp-block-lp-post-type has-text-color has-primary-color has-small-font-size\">Expert View<\/p>\n\n\t\t\n\t\t<h3 style=\"font-style:normal;font-weight:400\" class=\"wp-block-post-title has-base-font-size\"><a href=\"https:\/\/devoteam.info\/be\/expert-view\/how-to-apply-caching-strategy-part-2\/\" target=\"_self\" >Blog Series, Part II: How to apply caching strategy in a Mule4 project?<\/a><\/h3><\/div>\n\t\t\n\t<\/div>\n\n","yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v28.4 (Yoast SEO v28.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Blog Series, Part II: How to apply caching strategy in a Mule4 project? | Devoteam<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/devoteam.info\/be\/expert-view\/how-to-apply-caching-strategy-part-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Blog Series, Part II: How to apply caching strategy in a Mule4 project?\" \/>\n<meta property=\"og:description\" content=\"In my previous post, I briefly introduced what is cache and how it works. In this post, we will understand the&nbsp;importance of the&nbsp;best strategy to implement it in a Mule project and the validity of the data being cached. Bear in mind that a successful cache results in a high hit rate which means the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/devoteam.info\/be\/expert-view\/how-to-apply-caching-strategy-part-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Devoteam\" \/>\n<meta property=\"og:image\" content=\"https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/hc8onJWPbCZYzU7GHe5pVyLLXTQqaOkMWxV_oDNENeR1oP3KsVRpybch75WyQ6lyL6Mt0p_xgmHX_Csyns_dMGUJ4cAzywVEtFOPQ9aKXp5ZFMEQQPEfJZZOJPk42q579LCBLqpLhTaG-gY1PA.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/devoteam.info\\\/be\\\/expert-view\\\/how-to-apply-caching-strategy-part-2\\\/\",\"url\":\"https:\\\/\\\/devoteam.info\\\/be\\\/expert-view\\\/how-to-apply-caching-strategy-part-2\\\/\",\"name\":\"Blog Series, Part II: How to apply caching strategy in a Mule4 project? | Devoteam\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/devoteam.info\\\/be\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/devoteam.info\\\/be\\\/expert-view\\\/how-to-apply-caching-strategy-part-2\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/devoteam.info\\\/be\\\/expert-view\\\/how-to-apply-caching-strategy-part-2\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/devoteam.info\\\/wp-content\\\/uploads\\\/2024\\\/12\\\/pexels-flo-maderebner-623919-e1634904696434.jpg\",\"datePublished\":\"2022-05-27T06:24:51+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/devoteam.info\\\/be\\\/expert-view\\\/how-to-apply-caching-strategy-part-2\\\/#breadcrumb\"},\"inLanguage\":\"en-BE\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/devoteam.info\\\/be\\\/expert-view\\\/how-to-apply-caching-strategy-part-2\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-BE\",\"@id\":\"https:\\\/\\\/devoteam.info\\\/be\\\/expert-view\\\/how-to-apply-caching-strategy-part-2\\\/#primaryimage\",\"url\":\"https:\\\/\\\/devoteam.info\\\/wp-content\\\/uploads\\\/2024\\\/12\\\/pexels-flo-maderebner-623919-e1634904696434.jpg\",\"contentUrl\":\"https:\\\/\\\/devoteam.info\\\/wp-content\\\/uploads\\\/2024\\\/12\\\/pexels-flo-maderebner-623919-e1634904696434.jpg\",\"width\":1041,\"height\":1281},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/devoteam.info\\\/be\\\/expert-view\\\/how-to-apply-caching-strategy-part-2\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/devoteam.info\\\/be\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Expert View\",\"item\":\"https:\\\/\\\/devoteam.info\\\/be\\\/expert-view\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Blog Series, Part II: How to apply caching strategy in a Mule4 project?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/devoteam.info\\\/be\\\/#website\",\"url\":\"https:\\\/\\\/devoteam.info\\\/be\\\/\",\"name\":\"Devoteam\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/devoteam.info\\\/be\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-BE\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Blog Series, Part II: How to apply caching strategy in a Mule4 project? | Devoteam","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/devoteam.info\/be\/expert-view\/how-to-apply-caching-strategy-part-2\/","og_locale":"en_US","og_type":"article","og_title":"Blog Series, Part II: How to apply caching strategy in a Mule4 project?","og_description":"In my previous post, I briefly introduced what is cache and how it works. In this post, we will understand the&nbsp;importance of the&nbsp;best strategy to implement it in a Mule project and the validity of the data being cached. Bear in mind that a successful cache results in a high hit rate which means the [&hellip;]","og_url":"https:\/\/devoteam.info\/be\/expert-view\/how-to-apply-caching-strategy-part-2\/","og_site_name":"Devoteam","og_image":[{"url":"https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/hc8onJWPbCZYzU7GHe5pVyLLXTQqaOkMWxV_oDNENeR1oP3KsVRpybch75WyQ6lyL6Mt0p_xgmHX_Csyns_dMGUJ4cAzywVEtFOPQ9aKXp5ZFMEQQPEfJZZOJPk42q579LCBLqpLhTaG-gY1PA.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/devoteam.info\/be\/expert-view\/how-to-apply-caching-strategy-part-2\/","url":"https:\/\/devoteam.info\/be\/expert-view\/how-to-apply-caching-strategy-part-2\/","name":"Blog Series, Part II: How to apply caching strategy in a Mule4 project? | Devoteam","isPartOf":{"@id":"https:\/\/devoteam.info\/be\/#website"},"primaryImageOfPage":{"@id":"https:\/\/devoteam.info\/be\/expert-view\/how-to-apply-caching-strategy-part-2\/#primaryimage"},"image":{"@id":"https:\/\/devoteam.info\/be\/expert-view\/how-to-apply-caching-strategy-part-2\/#primaryimage"},"thumbnailUrl":"https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/pexels-flo-maderebner-623919-e1634904696434.jpg","datePublished":"2022-05-27T06:24:51+00:00","breadcrumb":{"@id":"https:\/\/devoteam.info\/be\/expert-view\/how-to-apply-caching-strategy-part-2\/#breadcrumb"},"inLanguage":"en-BE","potentialAction":[{"@type":"ReadAction","target":["https:\/\/devoteam.info\/be\/expert-view\/how-to-apply-caching-strategy-part-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-BE","@id":"https:\/\/devoteam.info\/be\/expert-view\/how-to-apply-caching-strategy-part-2\/#primaryimage","url":"https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/pexels-flo-maderebner-623919-e1634904696434.jpg","contentUrl":"https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/pexels-flo-maderebner-623919-e1634904696434.jpg","width":1041,"height":1281},{"@type":"BreadcrumbList","@id":"https:\/\/devoteam.info\/be\/expert-view\/how-to-apply-caching-strategy-part-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/devoteam.info\/be\/"},{"@type":"ListItem","position":2,"name":"Expert View","item":"https:\/\/devoteam.info\/be\/expert-view\/"},{"@type":"ListItem","position":3,"name":"Blog Series, Part II: How to apply caching strategy in a Mule4 project?"}]},{"@type":"WebSite","@id":"https:\/\/devoteam.info\/be\/#website","url":"https:\/\/devoteam.info\/be\/","name":"Devoteam","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/devoteam.info\/be\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-BE"}]}},"uagb_featured_image_src":{"full":["https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/pexels-flo-maderebner-623919-e1634904696434.jpg",1041,1281,false],"thumbnail":["https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/pexels-flo-maderebner-623919-e1634904696434-150x150.jpg",150,150,true],"medium":["https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/pexels-flo-maderebner-623919-e1634904696434-244x300.jpg",244,300,true],"medium_large":["https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/pexels-flo-maderebner-623919-e1634904696434-768x945.jpg",768,945,true],"large":["https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/pexels-flo-maderebner-623919-e1634904696434-832x1024.jpg",832,1024,true],"1536x1536":["https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/pexels-flo-maderebner-623919-e1634904696434.jpg",1041,1281,false],"2048x2048":["https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/pexels-flo-maderebner-623919-e1634904696434.jpg",1041,1281,false]},"uagb_author_info":{"display_name":"tomvermeersch","author_link":"https:\/\/devoteam.info\/be\/author\/"},"uagb_comment_info":0,"uagb_excerpt":"In my previous post, I briefly introduced what is cache and how it works. In this post, we will understand the&nbsp;importance of the&nbsp;best strategy to implement it in a Mule project and the validity of the data being cached. Bear in mind that a successful cache results in a high hit rate which means the&hellip;","_links":{"self":[{"href":"https:\/\/devoteam.info\/be\/wp-json\/wp\/v2\/expert-view\/514854","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devoteam.info\/be\/wp-json\/wp\/v2\/expert-view"}],"about":[{"href":"https:\/\/devoteam.info\/be\/wp-json\/wp\/v2\/types\/expert-view"}],"version-history":[{"count":0,"href":"https:\/\/devoteam.info\/be\/wp-json\/wp\/v2\/expert-view\/514854\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devoteam.info\/be\/wp-json\/wp\/v2\/media\/378564"}],"wp:attachment":[{"href":"https:\/\/devoteam.info\/be\/wp-json\/wp\/v2\/media?parent=514854"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devoteam.info\/be\/wp-json\/wp\/v2\/categories?post=514854"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devoteam.info\/be\/wp-json\/wp\/v2\/tags?post=514854"},{"taxonomy":"industry","embeddable":true,"href":"https:\/\/devoteam.info\/be\/wp-json\/wp\/v2\/industry?post=514854"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}