Grokking Modern API Design Interview
Vote

0% completed

​

Interview Question: Design a Checkout API

The interview question is:

Design a Checkout API.

The main requirements are a short-lived price guarantee and a purchase operation that is safe to retry.

A cart is not a price promise. A customer may keep a cart for days while a promotion ends, tax changes, or a seller updates a price. At the same time, the final checkout may call inventory, payment, and order creation. A timeout must not cause that sequence to run again.

The API needs a short-lived server-computed quote and a duplicate-safe checkout.

Scope

"I will design a customer's cart, server-computed price quotes, check

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content