What makes rest vs graphql for ecommerce dependable?
Dependability comes from explicit record authority, safe delivery semantics, bounded recovery, and reconciliation—not from the number of endpoints. For matching query and mutation patterns to operational needs, the design must explain what happens after duplicates, delay, partial failure, and an ambiguous timeout. Interface style should follow client and data-shape needs.
Should this use a request, webhook, queue, or batch?
Use a request when the caller needs an immediate decision, a webhook when a source announces change, a queue when work needs isolation and retry, and a batch or reconciliation job when completeness matters more than immediacy. Many durable integrations use more than one pattern.
What should be tested beyond the happy path?
Test invalid and missing data, stale versions, duplicate events, reordering, throttling, permission changes, timeout after remote commit, and replay. The route risk—choosing a fashionable interface without modeling traffic and ownership—needs a concrete test rather than a sentence in a brief. GraphQL flexibility can move complexity into cost and authorization; REST simplicity can multiply requests.
What evidence belongs at handoff?
Provide payload examples, mapping rules, state diagrams, failure categories, dashboards, alert ownership, replay instructions, and a reconciliation report. Prototype representative reads and writes, then compare failure and operating behavior.