QuestionQ39

VerifiedOrders, Payments, Shipping, and Tax

An Architect must integrate an Adobe Commerce store with a new Shipping Carrier. Cart data is sent to the Shipping Carrier’s API to obtain the price and show it to the customer. After the feature is implemented in the store, the API reaches its quota and returns the error “Too many requests”. The Shipping Carrier warns the store that it is sending too many API requests with identical content.

In the carrier model, what should the Architect change to resolve the problem?

Explanation

Carrier quote caching reuses the response for an identical rate request, avoiding repeated calls to the carrier API with the same cart data. Adobe Commerce’s online carrier base class provides cached-quote methods specifically to reduce duplicate requests to a carrier service during a session; shipment-request handling and the active-carrier check do not address duplicate cart-rate calls.

Learn more

Community Discussion

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