QuestionQ4

VerifiedManaging APIs and integrations

An external API often calls an Employees system API to retrieve employee data from a MySQL database. The architect must create a caching strategy that queries the database only when the Employees table is updated; otherwise, it must return a cached response to minimize redundant transactions handled by the database.

What must the architect do to accomplish the caching objective?

Explanation

A Database Connector On Table Row source configured for the Employees table can trigger a flow when table rows are detected, and an Invalidate Cache component can clear the cache associated with the object-store caching strategy. The following request recalculates the cached response from MySQL; requests made while the data is unchanged are served from the cache. A fixed scheduler and a one-hour expiration do not make invalidation dependent on an Employees-table update.

Learn more

Community Discussion

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