{"id":514860,"date":"2022-05-30T13:13:21","date_gmt":"2022-05-30T11:13:21","guid":{"rendered":"https:\/\/www.devoteam.com\/expert-view\/blog-serie-part-1-how-to-apply-caching-strategy-in-a-mule4-project\/"},"modified":"2022-05-30T13:13:21","modified_gmt":"2022-05-30T11:13:21","slug":"blog-serie-part-1-how-to-apply-caching-strategy-in-a-mule4-project","status":"publish","type":"expert-view","link":"https:\/\/devoteam.info\/en-se\/expert-view\/blog-serie-part-1-how-to-apply-caching-strategy-in-a-mule4-project\/","title":{"rendered":"Blog Series, Part I: How to apply caching strategy in a Mule4 project?"},"content":{"rendered":"\n<h2 class=\"has-black-color has-text-color wp-block-heading\">Why we want to apply caching, Benefits of caching and Caching Diagram?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Have you ever wondered what is caching data and how it works in Mule?&nbsp;Generally speaking and easy context,&nbsp;<strong>caching data<\/strong>&nbsp;is a simple process that stores multiple copies of data in a temporary storage location so that information can be reached faster. Our first logical thought, it would be to improve performance in the application whenever it needs to fetch data.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Advantages &amp; Disadvantages<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Why we want to apply caching? <\/h4>\n\n\n\n<p class=\"has-black-color has-text-color wp-block-paragraph\">We all know that caching is the term for storing reusable responses in order to make subsequent requests faster.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By storing relatively static data in the cache and serving it from the cache when requested, the application saves the time that would be required to generate the data from scratch for every request. More importantly, caching can occur at different levels and places within an application. We will expand on this later.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Bear in mind that there are considerations on the server and client side, let\u2019s revise those aspects.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On the server side, one aspect to take into account is that the cache may be used to store basic data, e.g. as a list of most recent article information fetched from the database. A second aspect is the cache may be used to store fragments or whole information, e.g. such as the rendering result of the most recent products.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On the client side, HTTP caching may be used to keep the most recently visited page content in the browser cache.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Benefits of caching<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Effective caching aids both content consumers and content providers. Some of the benefits that caching brings to content delivery are:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Decreased network costs: <\/strong>Content can be cached at various points in the network path between the content consumer and content origin. When the content is cached closer to the consumer, requests will not cause much additional network activity beyond the cache.<\/li><li><strong>Improved responsiveness: <\/strong>Caching enables content to be retrieved faster because an entire network round trip is not necessary. Caches maintained close to the user, like the browser cache, can make this retrieval nearly instantaneous.<\/li><li><strong>Increased performance on the same hardware:<\/strong> For the server where the content originated, more performance can be squeezed from the same hardware by allowing aggressive caching. The content owner can leverage the powerful servers along the delivery path to take the brunt of certain content loads.<\/li><li><strong>Availability of content during network interruptions: <\/strong>With certain policies, caching can be used to serve content to end users even when it may be unavailable for short periods of time from the origin servers.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Caching Diagram&nbsp;<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Below is a flowchart diagram of caching procedure<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/F0pATpr8RJ-P0410NARW7RQHSBoMFUlXJBhDrJQD9QpdBnI1wbLirSAU1-eNXYs9NRpY9__UHfaZ3TiyVmD6DRCIfpd_1Ui_x4OUU2S6T7SGbKjjS0yP30TlpoREwnVx3puxeWwaDpNMbfvQCg.png\" alt=\"\" width=\"840\" height=\"861\" \/><figcaption>Caching Procedure Diagram<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In the next blog posts you will:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>find out all about the importance of the best strategy to implement it in a Mule project and the validity of the data being cached<\/li><li>understand the mechanism of storing data on the server-side using an out of box feature of API Policy in Cloudhub.<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">If you want to read more about <a href=\"http:\/\/www.mulesoft.com\">MuleSoft<\/a>, explore our other expert <a href=\"https:\/\/splatform.devoteam.com\/insights-events\/\">articles<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Why we want to apply caching, Benefits of caching and Caching Diagram? Have you ever wondered what is caching data and how it works in Mule?&nbsp;Generally speaking and easy context,&nbsp;caching data&nbsp;is a simple process that stores multiple copies of data in a temporary storage location so that information can be reached faster. Our first logical [&hellip;]<\/p>\n","protected":false},"featured_media":380572,"template":"","categories":[],"tags":[3389,2441,3390,3640,4234,3333,3595,3339,3391,3392,3393,4235,2567,2517,3120],"industry":[],"class_list":["post-514860","expert-view","type-expert-view","status-publish","has-post-thumbnail","hentry","tag-api-en-se","tag-business-platforms-en-se","tag-communicaton-en-se","tag-connectivity-en-se","tag-education-en-se","tag-financial-services-en-se","tag-healthcare-sciences-en-se","tag-integration-en-se","tag-media-entertainment-en-se","tag-mulesoft-en-se","tag-mulesoft-anypoint-en-se","tag-non-profit-en-se","tag-public-sector-en-se","tag-retail-en-se","tag-technology-en-se"],"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\/en-se\/expert-view\/blog-serie-part-1-how-to-apply-caching-strategy-in-a-mule4-project\/\" target=\"_self\" ><img width=\"1296\" height=\"864\" src=\"https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/Journey.jpg\" class=\"attachment-post-thumbnail size-post-thumbnail wp-post-image\" alt=\"Blog Series, Part I: 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\/Journey.jpg 1296w, https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/Journey-300x200.jpg 300w, https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/Journey-1024x683.jpg 1024w, https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/Journey-768x512.jpg 768w\" sizes=\"auto, (max-width: 1296px) 100vw, 1296px\" \/><\/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\/en-se\/expert-view\/blog-serie-part-1-how-to-apply-caching-strategy-in-a-mule4-project\/\" target=\"_self\" >Blog Series, Part I: 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 I: 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\/en-se\/expert-view\/blog-serie-part-1-how-to-apply-caching-strategy-in-a-mule4-project\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Blog Series, Part I: How to apply caching strategy in a Mule4 project?\" \/>\n<meta property=\"og:description\" content=\"Why we want to apply caching, Benefits of caching and Caching Diagram? Have you ever wondered what is caching data and how it works in Mule?&nbsp;Generally speaking and easy context,&nbsp;caching data&nbsp;is a simple process that stores multiple copies of data in a temporary storage location so that information can be reached faster. Our first logical [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/devoteam.info\/en-se\/expert-view\/blog-serie-part-1-how-to-apply-caching-strategy-in-a-mule4-project\/\" \/>\n<meta property=\"og:site_name\" content=\"Devoteam\" \/>\n<meta property=\"og:image\" content=\"https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/F0pATpr8RJ-P0410NARW7RQHSBoMFUlXJBhDrJQD9QpdBnI1wbLirSAU1-eNXYs9NRpY9__UHfaZ3TiyVmD6DRCIfpd_1Ui_x4OUU2S6T7SGbKjjS0yP30TlpoREwnVx3puxeWwaDpNMbfvQCg.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=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/devoteam.info\\\/en-se\\\/expert-view\\\/blog-serie-part-1-how-to-apply-caching-strategy-in-a-mule4-project\\\/\",\"url\":\"https:\\\/\\\/devoteam.info\\\/en-se\\\/expert-view\\\/blog-serie-part-1-how-to-apply-caching-strategy-in-a-mule4-project\\\/\",\"name\":\"Blog Series, Part I: How to apply caching strategy in a Mule4 project? | Devoteam\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/devoteam.info\\\/en-se\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/devoteam.info\\\/en-se\\\/expert-view\\\/blog-serie-part-1-how-to-apply-caching-strategy-in-a-mule4-project\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/devoteam.info\\\/en-se\\\/expert-view\\\/blog-serie-part-1-how-to-apply-caching-strategy-in-a-mule4-project\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/devoteam.info\\\/wp-content\\\/uploads\\\/2024\\\/12\\\/Journey.jpg\",\"datePublished\":\"2022-05-30T11:13:21+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/devoteam.info\\\/en-se\\\/expert-view\\\/blog-serie-part-1-how-to-apply-caching-strategy-in-a-mule4-project\\\/#breadcrumb\"},\"inLanguage\":\"en-SE\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/devoteam.info\\\/en-se\\\/expert-view\\\/blog-serie-part-1-how-to-apply-caching-strategy-in-a-mule4-project\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-SE\",\"@id\":\"https:\\\/\\\/devoteam.info\\\/en-se\\\/expert-view\\\/blog-serie-part-1-how-to-apply-caching-strategy-in-a-mule4-project\\\/#primaryimage\",\"url\":\"https:\\\/\\\/devoteam.info\\\/wp-content\\\/uploads\\\/2024\\\/12\\\/Journey.jpg\",\"contentUrl\":\"https:\\\/\\\/devoteam.info\\\/wp-content\\\/uploads\\\/2024\\\/12\\\/Journey.jpg\",\"width\":1296,\"height\":864},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/devoteam.info\\\/en-se\\\/expert-view\\\/blog-serie-part-1-how-to-apply-caching-strategy-in-a-mule4-project\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/devoteam.info\\\/en-se\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Expert View\",\"item\":\"https:\\\/\\\/devoteam.info\\\/en-se\\\/expert-view\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Blog Series, Part I: How to apply caching strategy in a Mule4 project?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/devoteam.info\\\/en-se\\\/#website\",\"url\":\"https:\\\/\\\/devoteam.info\\\/en-se\\\/\",\"name\":\"Devoteam\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/devoteam.info\\\/en-se\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-SE\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Blog Series, Part I: 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\/en-se\/expert-view\/blog-serie-part-1-how-to-apply-caching-strategy-in-a-mule4-project\/","og_locale":"en_US","og_type":"article","og_title":"Blog Series, Part I: How to apply caching strategy in a Mule4 project?","og_description":"Why we want to apply caching, Benefits of caching and Caching Diagram? Have you ever wondered what is caching data and how it works in Mule?&nbsp;Generally speaking and easy context,&nbsp;caching data&nbsp;is a simple process that stores multiple copies of data in a temporary storage location so that information can be reached faster. Our first logical [&hellip;]","og_url":"https:\/\/devoteam.info\/en-se\/expert-view\/blog-serie-part-1-how-to-apply-caching-strategy-in-a-mule4-project\/","og_site_name":"Devoteam","og_image":[{"url":"https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/F0pATpr8RJ-P0410NARW7RQHSBoMFUlXJBhDrJQD9QpdBnI1wbLirSAU1-eNXYs9NRpY9__UHfaZ3TiyVmD6DRCIfpd_1Ui_x4OUU2S6T7SGbKjjS0yP30TlpoREwnVx3puxeWwaDpNMbfvQCg.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/devoteam.info\/en-se\/expert-view\/blog-serie-part-1-how-to-apply-caching-strategy-in-a-mule4-project\/","url":"https:\/\/devoteam.info\/en-se\/expert-view\/blog-serie-part-1-how-to-apply-caching-strategy-in-a-mule4-project\/","name":"Blog Series, Part I: How to apply caching strategy in a Mule4 project? | Devoteam","isPartOf":{"@id":"https:\/\/devoteam.info\/en-se\/#website"},"primaryImageOfPage":{"@id":"https:\/\/devoteam.info\/en-se\/expert-view\/blog-serie-part-1-how-to-apply-caching-strategy-in-a-mule4-project\/#primaryimage"},"image":{"@id":"https:\/\/devoteam.info\/en-se\/expert-view\/blog-serie-part-1-how-to-apply-caching-strategy-in-a-mule4-project\/#primaryimage"},"thumbnailUrl":"https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/Journey.jpg","datePublished":"2022-05-30T11:13:21+00:00","breadcrumb":{"@id":"https:\/\/devoteam.info\/en-se\/expert-view\/blog-serie-part-1-how-to-apply-caching-strategy-in-a-mule4-project\/#breadcrumb"},"inLanguage":"en-SE","potentialAction":[{"@type":"ReadAction","target":["https:\/\/devoteam.info\/en-se\/expert-view\/blog-serie-part-1-how-to-apply-caching-strategy-in-a-mule4-project\/"]}]},{"@type":"ImageObject","inLanguage":"en-SE","@id":"https:\/\/devoteam.info\/en-se\/expert-view\/blog-serie-part-1-how-to-apply-caching-strategy-in-a-mule4-project\/#primaryimage","url":"https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/Journey.jpg","contentUrl":"https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/Journey.jpg","width":1296,"height":864},{"@type":"BreadcrumbList","@id":"https:\/\/devoteam.info\/en-se\/expert-view\/blog-serie-part-1-how-to-apply-caching-strategy-in-a-mule4-project\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/devoteam.info\/en-se\/"},{"@type":"ListItem","position":2,"name":"Expert View","item":"https:\/\/devoteam.info\/en-se\/expert-view\/"},{"@type":"ListItem","position":3,"name":"Blog Series, Part I: How to apply caching strategy in a Mule4 project?"}]},{"@type":"WebSite","@id":"https:\/\/devoteam.info\/en-se\/#website","url":"https:\/\/devoteam.info\/en-se\/","name":"Devoteam","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/devoteam.info\/en-se\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-SE"}]}},"uagb_featured_image_src":{"full":["https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/Journey.jpg",1296,864,false],"thumbnail":["https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/Journey-150x150.jpg",150,150,true],"medium":["https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/Journey-300x200.jpg",300,200,true],"medium_large":["https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/Journey-768x512.jpg",768,512,true],"large":["https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/Journey-1024x683.jpg",1024,683,true],"1536x1536":["https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/Journey.jpg",1296,864,false],"2048x2048":["https:\/\/devoteam.info\/wp-content\/uploads\/2024\/12\/Journey.jpg",1296,864,false]},"uagb_author_info":{"display_name":"tomvermeersch","author_link":"https:\/\/devoteam.info\/en-se\/author\/"},"uagb_comment_info":0,"uagb_excerpt":"Why we want to apply caching, Benefits of caching and Caching Diagram? Have you ever wondered what is caching data and how it works in Mule?&nbsp;Generally speaking and easy context,&nbsp;caching data&nbsp;is a simple process that stores multiple copies of data in a temporary storage location so that information can be reached faster. Our first logical&hellip;","_links":{"self":[{"href":"https:\/\/devoteam.info\/en-se\/wp-json\/wp\/v2\/expert-view\/514860","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devoteam.info\/en-se\/wp-json\/wp\/v2\/expert-view"}],"about":[{"href":"https:\/\/devoteam.info\/en-se\/wp-json\/wp\/v2\/types\/expert-view"}],"version-history":[{"count":0,"href":"https:\/\/devoteam.info\/en-se\/wp-json\/wp\/v2\/expert-view\/514860\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devoteam.info\/en-se\/wp-json\/wp\/v2\/media\/380572"}],"wp:attachment":[{"href":"https:\/\/devoteam.info\/en-se\/wp-json\/wp\/v2\/media?parent=514860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devoteam.info\/en-se\/wp-json\/wp\/v2\/categories?post=514860"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devoteam.info\/en-se\/wp-json\/wp\/v2\/tags?post=514860"},{"taxonomy":"industry","embeddable":true,"href":"https:\/\/devoteam.info\/en-se\/wp-json\/wp\/v2\/industry?post=514860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}