System Design Patterns: From Fundamentals to Real Systems
Vote

0% completed

​

Introduction

The store places 200 orders per second, which is 200 × 3,600 = 720,000 orders in an hour. Each order calls the payment provider once. Suppose the provider is excellent and fails only 1 charge in 1,000. Even so, that is 720 failed charges in an ordinary hour, about one every 5 seconds.

The number of failures does not decide the cost. The way each call fails decides it. A charge that returns an error in 10 ms costs one buyer one order. A charge that never answers holds one of checkout's 200 threads forever.

Now suppose each failed charge never answers. At 1 in 1,000, checkout gets 200 × 0

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content