Preparing your design workspace

Loading the problem and your latest saved attempt…

Design Cross-Device Wallpaper Synchronization

Design responsive cross-device wallpaper state propagation and constrained resumable asset delivery.

Problem statement

Design a system in which a wallpaper selected on one device propagates to the user's other devices. The initiating device must update immediately and must never roll back its local selection solely because synchronization fails. Resolve concurrent selections with last-write-wins.

Prefetch large assets only when device idle, power, storage, and network conditions permit; use segmented resumable downloads, version or ETag validation, and exponential backoff. Evict prefetched assets before explicitly selected wallpapers. Decode images off the main thread and commit only final rendering on it.

For this exercise, assume each user has up to 20 devices, assets up to 100 MB, cross-device metadata p95 below 30 seconds, encrypted transport and storage, and a 2 GB local asset budget.

What to build

  1. A device applies a selected wallpaper locally at once and durably records a versioned synchronization intent.
  2. Other authorized devices converge to the last-write-wins selection and fetch the exact immutable asset version when policy permits.
  3. Devices resume verified segmented transfers, render off the main thread, and evict prefetched assets before explicit selections.

At scale

  • Source-backed behavior: selection propagation uses last-write-wins and does not roll back the initiating device on a sync failure.
  • Source-backed behavior: downloads are segmented, resumable, version-validated, backoff-aware, and gated by device conditions.
  • Practice assumption: a user has at most 20 devices, assets are at most 100 MB, and metadata converges within 30 seconds at p95.
  • Practice assumption: each device has a 2 GB wallpaper cache, encrypted transport and storage, and an authoritative server time for conflict ordering.