filmov
tv
Design a Distributed Message Queue - System Design Mock Interview
Показать описание
A senior engineering manager, designs a distributed message queue.
When designing a distributed message queue, consider both functional and non-functional requirements. Use a topic-based system with a pull model for scalability and control. Use a key factor for sharding. Store data with SQL, NoSQL, or a write-ahead log system, and use metadata storage for important info.
To ensure fault tolerance, use a leader-follower approach with a coordination service and acknowledgment for write success assessment. Follow a structured approach and incorporate multiple producers and consumers for different topics to design an effective message queue.
Chapters (Powered by ChapterMe) -
00:00 - Intro
00:13 - Functional and distributed queue requirements
01:42 - Queue types topic base, fan out, order creation
02:36 - Direct message queues in ecommerce
06:39 - High-level design for messages with producers
11:10 - Scaling consumer for faster consumption
12:20 - Different options for queue design
13:29 - Key and sharding for message storage
13:56 - Different sharders for different buyers
14:21 - Storage options SQL, no SQL, write ahead
15:00 - SQL-based log management solution achieves high performance
18:01 - Partitioning 300TB files using buyer ID
18:52 - Partitioning, segmentation, metadata storage for Q
21:09 - Data storage, consumption, and fault tolerance
25:47 - Replicating messages in Kafka
28:57 - Faster interview questions highlight advantages of depth analysis
29:18 - System design interviews short summary, follow pattern
31:20 - Check-in with interviewer helps prepare for interview
Watch more system design videos here:
ABOUT US:
Did you enjoy this interview question and answer? Want to land your dream career? Exponent is an online community, course, and coaching platform to help you ace your upcoming interview. Exponent has helped people land their dream careers at companies like Google, Microsoft, Amazon, and high-growth startups. Exponent is currently licensed by Stanford, Yale, UW, and others.
Our courses include interview lessons, questions, and complete answers with video walkthroughs. Access hours of real interview videos, where we analyze what went right or wrong, and our 1000+ community of expert coaches and industry professionals, to help you get your dream job and more!
Комментарии