Design a frontend shopping cart and feature flags

Read the full interview experience this question came from →

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.

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.

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.

Read the full Disney Software Engineer interview experience this question came from

|Home/System Design/Disney
Disney logo
Disney
Nov 24, 2025
easySoftware EngineerOnsiteSystem Design
18
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.

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...