LLD - Design — Online Shopping CartWhy is eventual consistency often acceptable in e-commerce systems for some data, but not for order transactions?ABecause product catalog updates can tolerate delays, but order transactions require immediate accuracyBBecause all data must always be immediately consistentCBecause eventual consistency causes system crashesDBecause order transactions are not importantCheck Answer
Step-by-Step SolutionSolution:Step 1: Differentiate data types in e-commerceProduct catalog data can be slightly out of date without major issues, but order transactions must be accurate immediately.Step 2: Understand eventual consistencyEventual consistency means data updates propagate over time, which is fine for non-critical data but risky for orders.Final Answer:Because product catalog updates can tolerate delays, but order transactions require immediate accuracy -> Option AQuick Check:Eventual consistency okay for catalog, not orders [OK]Quick Trick: Orders need immediate consistency; catalogs can wait [OK]Common Mistakes:MISTAKESAssuming all data must be instantly consistentThinking eventual consistency causes crashesIgnoring importance of order accuracy
Master "Design — Online Shopping Cart" in LLD9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepArchTryChallengeDesignRecallScale
More LLD Quizzes Advanced LLD Concepts - Anti-patterns to avoid - Quiz 2easy Advanced LLD Concepts - Dependency injection framework - Quiz 9hard Design — Chess Game - Game state management - Quiz 13medium Design — Chess Game - Observer pattern for UI updates - Quiz 2easy Design — Food Delivery System - Notification to all parties - Quiz 8hard Design — Food Delivery System - Rating and review system - Quiz 7medium Design — Food Delivery System - Why delivery systems test service coordination - Quiz 15hard Design — Online Shopping Cart - Notification on state change - Quiz 10hard Design — Online Shopping Cart - Notification on state change - Quiz 9hard Design — Splitwise (Expense Sharing) - User, Group, Expense classes - Quiz 15hard