QuestionQ54

VerifiedManaging APIs and integrations

Refer to the exhibit.

Question Image

A manufacturing company is building a new set of APIs for its retail business. One API, the Master Look Up API, is a System API. The API uses a persistent object store and will be used by nearly all other APIs to provide master lookup data.

The Master Look Up API is deployed on two CloudHub workers with 0.1 vCore each because a large amount of master data must be cached. Most master lookup data is stored as key-value pairs. The cache is refreshed when a key is not found in the cache.

During performance testing, the Master Look Up API was found to have a high response time because of the latency of database queries used to retrieve the master lookup data.

What two methods can be used to resolve these performance issues?

Choose two
Explanation

An HTTP caching policy for GET endpoints reuses cached responses, reducing backend processing and database load. Synchronizing Object Store access prevents concurrent cache misses across workers from independently querying and updating the same lookup entry; one request populates the cache and subsequent concurrent requests can use that value. MuleSoft documents both response caching and synchronized cache/Object Store access for this purpose.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!