ByteByteGo Newsletter

Share this post

Black Friday flash sale

blog.bytebytego.com

Black Friday flash sale

Alex Xu
Nov 25, 2021
143
8
Share this post

Black Friday flash sale

blog.bytebytego.com

Black Friday is coming.

Designing a system with extremely high concurrency, high availability and quick responsiveness needs to consider many aspects all the way from frontend to backend.

See the diagram below for details:

Design principles:

1. Less is more - less element on the web page, fewer data queries to the database, fewer web requests, fewer system dependencies

2. Short critical path - fewer hops among services or merge into one service

3. Async processing- use message queues to handle high TPS

4. Isolation - isolate static and dynamic contents, isolate processes and databases for rare items

5. Overselling is bad. When to decrease the inventory is important

6. User experience is important. We definitely don’t want to inform users that they have successfully placed orders but later tell them no items are actually available

Happy shopping! If I missed anything,  please leave a comment.

8
Share this post

Black Friday flash sale

blog.bytebytego.com
8 Comments
rohanmehta
Jul 29, 2022

we can use multi-master cache to divide the load

Expand full comment
ReplyCollapse
Jason Yip
Dec 4, 2022

Instead of "nginx", would it be better to say "reverse proxy" as the general concept?

Expand full comment
ReplyCollapse
6 more comments…
TopNewCommunity

No posts

Ready for more?

© 2023 ByteByteGo
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing