PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/System Design/J.P. Morgan

Improve shopping cart latency and stock notifications

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a candidate's ability to design scalable, low-latency e-commerce architectures and real-time notification mechanisms while reasoning about data consistency, concurrency control, and correctness under high traffic (including concerns like avoiding oversells).

  • easy
  • J.P. Morgan
  • System Design
  • Software Engineer

Improve shopping cart latency and stock notifications

Company: J.P. Morgan

Role: Software Engineer

Category: System Design

Difficulty: easy

Interview Round: Take-home Project

You are given an existing e-commerce shopping cart system (web/mobile) that already supports adding/removing items and viewing the cart. The interview focuses on improving the current system rather than rewriting it; you do NOT need to spend much time on full requirements, detailed API specs, or exhaustive data models. Design improvements to address two problems: 1) **Faster latency** for common cart operations (especially “view cart”). 2) When a product becomes **out of stock**, the system should **notify the user quickly/near real-time** that the item is no longer available (and reflect that state in the cart UI). Explain your architecture changes, data flow, and how you handle correctness (e.g., avoiding oversells) under high traffic.

Quick Answer: This question evaluates a candidate's ability to design scalable, low-latency e-commerce architectures and real-time notification mechanisms while reasoning about data consistency, concurrency control, and correctness under high traffic (including concerns like avoiding oversells).

Related Interview Questions

  • Design a URL shortener - J.P. Morgan (easy)
  • Design a cloud-based global property rental platform - J.P. Morgan (medium)
  • Design a URL shortener - J.P. Morgan (medium)
  • Design a course registration system - J.P. Morgan (easy)
J.P. Morgan logo
J.P. Morgan
Feb 9, 2026, 12:00 AM
Software Engineer
Take-home Project
System Design
9
0

You are given an existing e-commerce shopping cart system (web/mobile) that already supports adding/removing items and viewing the cart. The interview focuses on improving the current system rather than rewriting it; you do NOT need to spend much time on full requirements, detailed API specs, or exhaustive data models.

Design improvements to address two problems:

  1. Faster latency for common cart operations (especially “view cart”).
  2. When a product becomes out of stock , the system should notify the user quickly/near real-time that the item is no longer available (and reflect that state in the cart UI).

Explain your architecture changes, data flow, and how you handle correctness (e.g., avoiding oversells) under high traffic.

Solution

Show

Submit Your Answer

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More J.P. Morgan•More Software Engineer•J.P. Morgan Software Engineer•J.P. Morgan System Design•Software Engineer System Design
PracHub

Master your tech interviews with 8,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.