Grokking the Forward Deployed Engineer Interview
Vote

0% completed

​

Calling and Wrapping an External API

A hardware retailer's inventory API returns 50 products per request and allows 120 requests a minute. The retailer stocks 18,000 products, so a full read takes 18,000 divided by 50, or 360 requests. At 120 requests a minute, that takes 3 minutes. About 1 request in 200 times out, so a full read has about 2 failures. A nightly job must handle each of these cases.

What a Wrapper Is

A wrapper is a small module of your own that is the only code allowed to call an external API. The program calls simple functions like `get_product(sku)

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content