← Questions
Design wallpaper sync across a user's devices
0
I was asked this
No reports yet. Sign in to say where you were asked it.
A system design interview question asked in Apple's system design round, last asked Jun 2026. It tests sync, mobile and storage.
When a user sets a wallpaper on one device, their other devices (phone, tablet, laptop) should switch to it. Design that sync. A change must apply immediately on the device where it was made and reach the others eventually, even if they are offline or two devices change the wallpaper at about the same time.
Requirements
- Functional: set a wallpaper (a built-in one or the user's own image) with its settings (crop, position, light and dark variants); propagate it to every signed-in device of the account; devices that were offline catch up; a per-device opt-out.
- Non-functional: local change instant; other devices updated within seconds to minutes; small battery and network cost; images private to the user; the device stays responsive while a large image downloads and decodes.
Clarifying questions
- Is the wallpaper the same on every device, or per device type (phone versus laptop screens)?
- Can users set their own photos, or only built-in wallpapers?
- What happens when two devices set different wallpapers while one is offline?
- Is this per account or shared across a family?
- What is the size limit on an image?
What a strong answer covers
- Data model: a small settings record per account (asset id, crop and position per device class, version, timestamp, originating device) separate from the image, which is an immutable blob addressed by content hash.
- Flow: the device applies the change locally, uploads the image if it isn't stored yet, then writes the settings record with its version; the server notifies other devices with a silent push; each device fetches the record and downloads the asset if it is new.
- Conflicts: a version or vector per record and a clear rule, such as last writer wins by server receipt time, with the losing change discarded silently; stated as a choice.
- Offline and retries: devices store pending changes and retry with backoff; reads use a cursor or version so a missed push is caught on the next launch.
- Device fit: the server or the device produces sizes and crops for each screen; downloads only on Wi-Fi or when charging if large.
- Security and limits: authenticated per account, encrypted storage, a cache limit on device, old assets cleaned up.
- Decoding off the main thread and swapping the wallpaper only once the new image is ready.
Follow-ups
- Add a dynamic wallpaper that changes with time of day. What syncs, and what is computed on the device?
- A user has 15 devices and changes the wallpaper every minute. How do you protect the system?
- How would you sync other small settings (ringtone, accent color) with the same design?
Where it's asked
- Apple · System design · Last asked Jun 2026
What it tests
sync · mobile · storage
No official answer yet. Draw yours on the right; publish it and it shows under Community.
Nothing published yet. Publish your canvas and it shows here for others to open and remix.
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing
