PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/System Design/Disney

Design a frontend shopping cart and feature flags

Last updated: Mar 29, 2026

Quick Overview

This question evaluates frontend system-design skills including client-side state management, synchronization and conflict-resolution strategies, caching and offline resilience, performance for large carts, observability, and feature-flag/remote-config design for targeted rollouts and experiments.

  • easy
  • Disney
  • System Design
  • Software Engineer

Design a frontend shopping cart and feature flags

Company: Disney

Role: Software Engineer

Category: System Design

Difficulty: easy

Interview Round: Onsite

## Scenario You are designing frontend-focused systems for a large e-commerce web app. ## Part A — Shopping cart (frontend focus) Design the **shopping cart experience** across web sessions and devices. Cover: - Requirements: anonymous vs. logged-in carts, multi-tab behavior, offline/poor network, real-time price/stock changes. - Data model (cart item, quantity, variants, promotions). - Client state management and caching strategy. - Sync strategy with backend (optimistic UI, conflict resolution, idempotency). - Performance (rendering large carts, minimizing API calls). - Observability (metrics, logging) and failure handling. ## Part B — Feature flag system (frontend focus) Design a **feature flag / remote config** system used to gate UI features. Cover: - Targeting (user/segment/percentage rollout), environments, and kill switch. - Delivery to clients (SDK, bootstrap, caching, polling vs. push). - Consistency guarantees (what users see across refreshes/devices). - Safety (flag dependencies, defaults, failure modes). - Experimentation/A-B testing hooks and metrics. Assume you can propose APIs and backend components as needed, but focus on frontend architecture and end-to-end behavior.

Quick Answer: This question evaluates frontend system-design skills including client-side state management, synchronization and conflict-resolution strategies, caching and offline resilience, performance for large carts, observability, and feature-flag/remote-config design for targeted rollouts and experiments.

Related Interview Questions

  • Design a Twitter-like microblogging platform - Disney (medium)
  • Design a global multi-game leaderboard - Disney (hard)
  • Design e-commerce browse/search - Disney (hard)
Disney logo
Disney
Nov 24, 2025, 12:00 AM
Software Engineer
Onsite
System Design
8
0

Scenario

You are designing frontend-focused systems for a large e-commerce web app.

Part A — Shopping cart (frontend focus)

Design the shopping cart experience across web sessions and devices.

Cover:

  • Requirements: anonymous vs. logged-in carts, multi-tab behavior, offline/poor network, real-time price/stock changes.
  • Data model (cart item, quantity, variants, promotions).
  • Client state management and caching strategy.
  • Sync strategy with backend (optimistic UI, conflict resolution, idempotency).
  • Performance (rendering large carts, minimizing API calls).
  • Observability (metrics, logging) and failure handling.

Part B — Feature flag system (frontend focus)

Design a feature flag / remote config system used to gate UI features.

Cover:

  • Targeting (user/segment/percentage rollout), environments, and kill switch.
  • Delivery to clients (SDK, bootstrap, caching, polling vs. push).
  • Consistency guarantees (what users see across refreshes/devices).
  • Safety (flag dependencies, defaults, failure modes).
  • Experimentation/A-B testing hooks and metrics.

Assume you can propose APIs and backend components as needed, but focus on frontend architecture and end-to-end behavior.

Solution

Show

Submit Your Answer

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More Disney•More Software Engineer•Disney Software Engineer•Disney 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.