---
title: "Improving Performance with Cache in MuleSoft · Appnovation"
url: "https://www.appnovation.com/insights/improving-performance-cache-mulesoft"
description: "How caching in MuleSoft improved API performance in a large integration project connecting Alfresco, Drupal and external services."
---

Article

# Improving Performance with Cache in MuleSoft

[![](https://cdn.sanity.io/images/ey850001/production/e97c2753023ea4f5c82f300813837655ec798fe7-68x68.jpg?w=68&auto=format) paladro paladro Alfresco Developer](/people/paladro-paladro.md) Oct 05, 2016  
 1 min read 

![Improving Performance with Cache in MuleSoft](https://cdn.sanity.io/images/ey850001/production/621517aa7a497d07e3be03d0254e75d950778b6f-1400x400.jpg?w=1400&auto=format) 

I have been working recently in an integration project as a MuleSoft Developer. We have used many different technologies like Alfresco, Drupal, other external services... and we have implemented a large amount of APIs to support the integration between all the systems.

As the APIs were getting bigger, we've been experimenting with some performance issues.

Using cache has been one of many decisions that we have made to improve the performance in our project.

**About caching in MuleSoft:**

The Cache Scope saves on time and processing load by storing and reusing frequently called data. You can put any number of message processors into a cache scope and configure the caching strategy to store the responses (which contain the payload of the response message) produced by the processing that occurs within the scope.

**Configuring Cache Strategy**

**Define the Custom Object Store (EhCacheObjectStore)**

**Add Cache to the flow**

Add the tag \<ee:cache> to the flows that take a long time to be proccessed and they are not expected to change in a short period of time

**Invalidate Cache**

If we add cache to GET:properties method, we will need to invalidate the cache every time we update a property

[![](https://cdn.sanity.io/images/ey850001/production/e97c2753023ea4f5c82f300813837655ec798fe7-68x68.jpg?w=68&auto=format) paladro paladro Alfresco Developer · Appnovation](/people/paladro-paladro.md) 

## Keep reading

[![Effectively Using Caching While Developing APIs in Mule: Part 2](https://cdn.sanity.io/images/ey850001/production/73fcddfb62a81b15188fd15809d406189cb17016-1600x600.jpg?w=640&auto=format)](/insights/effectively-using-caching-while-developing-apis-mule-part-2.md)

 Article · 5 min Feb 08, 2019 

### [Effectively Using Caching While Developing APIs in Mule: Part 2](/insights/effectively-using-caching-while-developing-apis-mule-part-2.md)

[HemantT HemantT](/people/hemantt-hemantt.md) Article 

[![Effectively Using Caching While Developing APIs in Mule: Part 1](https://cdn.sanity.io/images/ey850001/production/0116890d4cd66710006d043fce6e3f4156f0ef7d-1600x600.jpg?w=640&auto=format)](/insights/effectively-using-caching-while-developing-apis-mule-part-1.md)

 Article · 7 min Jan 16, 2019 

### [Effectively Using Caching While Developing APIs in Mule: Part 1](/insights/effectively-using-caching-while-developing-apis-mule-part-1.md)

[HemantT HemantT](/people/hemantt-hemantt.md) Article 

## Get the thinking,  
*before everyone else.*

One considered email a month. New essays, field notes from live engagements, and the occasional strong opinion. No noise.
