QuestionQ18
Design and implement optimal solutions for Adobe Commerce to meet business needsAn 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 on the store, the API reaches its quota and returns the error “Too many requests”. The Shipping Carrier cautions the store that it is sending too many requests with identical content to the API.
In the carrier model, what should the Architect change to resolve the issue?
- A In _doShipmentRequest(), call canCollectRates() before sending request to the API.
- B Override getResponse(), save the response to a variable, check if the response exists, then return.
- C Implement _setCachedQuotes() and _getCachedQuotes(), return the data if the request matches.
Community Discussion