PracHub
QuestionsLearningGuidesInterview 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 an Entitlement-Aware Agentic Portfolio Workflow - J.P. Morgan (medium)
  • Design a Scalable Notification System - J.P. Morgan (medium)
  • Design an E-Commerce Shopping Website - J.P. Morgan (medium)
  • Design a Reliable Bank Payment System - J.P. Morgan (medium)
  • Design a URL shortener - J.P. Morgan (easy)
|Home/System Design/J.P. Morgan

Improve shopping cart latency and stock notifications

J.P. Morgan logo
J.P. Morgan
Feb 9, 2026, 12:00 AM
easySoftware EngineerTake-home ProjectSystem Design
13
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.

Submit Your Answer to Earn 20XP

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

Your design canvas — auto-saved

PracHub

Master your tech interviews with 9,000+ real questions from top companies.

Product

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

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • AI Coding 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.