System Design: Find My Network (Walnut Find: Rotating Keys, Sealed Reports, Anonymous Uploads, Unwanted Tracking Alerts)
We design a network that finds lost things, like Apple's Find My, and call it Walnut Find.
A person puts a small Bluetooth tag in a suitcase. When the suitcase is lost, any phone that passes it reports where it is. The owner sees the place on a map.
The hard part is privacy. A billion strangers' phones report places. Yet nobody else may learn where the suitcase is, who owns it or which phone saw it.
That includes us, Walnut, who run the servers.
As in any system design interview, every number here is our own assumption for planning, and the design is our own.
All times are local, with the time zone named. All people, items and IDs in the story are made up; the cities and airports are real.
How to read this post. It takes about 80 minutes in full, so it is built to be read in parts:
1. Requirements
1.1 What we are building
Walnut makes phones, laptops and the Walnut Tag. A Walnut Tag is a coin-sized Bluetooth tag that people put on keys, bags and bikes. Walnut Find does four jobs:
- Hear lost items. Any Walnut phone that passes a lost item reports where it was, without its owner noticing.
- Show only the owner. Only the item's owner can open a report; our servers store reports they cannot read.
- Hide the finder. A report carries nothing that tells us which phone sent it.
- Protect people from being followed. A tag hidden in someone's car must not become a tool to follow them.
The story. It is Thanksgiving week 2026. Thanksgiving is a US holiday on the fourth Thursday of November, when many people fly home to their families.
- Sun 22 Nov, 05:15 Pacific. In San Francisco, Emily Carter pairs a new Walnut Tag with her phone. She puts it in her suitcase and flies to New York for the holiday.
- Fri 27 Nov, 19:05 Central. In Austin, Jake Miller parks his car in a garage and walks to a concert. His Walnut Tag stays in the glovebox, so it is separated from 19:45.
- 23:10 Central. A thief steals Jake's car from the garage.
- Sat 28 Nov, 02:00 Pacific. In Portland, a bike theft ring starts sending fake reports for the tags of 40 bikes it stole. It wants the owners to see their bikes in the wrong places.
- Sun 29 Nov, 07:40 Eastern. Emily checks her suitcase at New York's JFK airport. A handler, Tyler Brooks, sends it on an earlier flight to San Francisco by mistake. His phone reports the tag on the way.
- Sun 29 Nov, 14:30 Pacific. Emily has landed at San Francisco's airport, SFO. At the belt, her suitcase does not come out. She asks Walnut Find to tell her when it is found.
- 14:50 Pacific. Carlos Ruiz, ground staff at SFO, has spent half an hour in the baggage storeroom. His phone uploads a report. Emily's phone shows "item found" a few seconds later.
- 15:00 Pacific. Emily shares the suitcase's place with Marcus Hill, an airline baggage agent, for one day.
- Mon 30 Nov, 08:45 Mountain. In Denver, Megan Lee's phone warns her that an unknown tag is moving with her. Her former partner Derek hid it in her car.
What happens to each person:
- Marcus brings Emily her suitcase at 15:45, 75 minutes after she reached the belt. Tyler and Carlos never learn whose suitcase they helped find.
- Jake gives police a street address on Saturday at 08:00. They find his car at 10:40. The thief never searched the glovebox, so the tag was still there.
- The Portland bike owners see scattered false places for about 12 hours. Police still find 31 of the 40 bikes from the real reports that got through.
- Megan finds the tag under her trunk lining. Police learn which account owns it through a legal request.
- Walnut never learns where any of these items was.
The hard part has four sides:
- The owner is far away. Emily's phone is on a plane when Carlos's phone hears her tag, so the two phones never talk.
- Nothing may identify the tag. Its ID must change, so nobody with a radio can follow it, yet Emily must still find its reports.
- Nothing may identify the finder. Carlos's network address, account or device ID could each reveal him.
- The same privacy helps abusers. We cannot open a report, so we cannot see that the Portland ring's places are false. And Derek's hidden tag gets the same sealed reports as Emily's suitcase.
1.2 Words we use
Items and the radio:
| Word | Meaning here |
|---|---|
| Item | Anything Walnut Find can find. In this post, a Walnut Tag |
| Owner | The person whose account the item is paired with |
| Finder | Any Walnut phone with finding turned on. It reports items it hears |
| Bluetooth Low Energy | A short-range radio that uses very little power. It reaches about 10 to 30 m |
| Beacon | One short radio message a tag sends every 2 seconds. Anyone nearby can hear it |
| Near owner | The tag's mode while one of its owner's devices has proven itself to the tag in the last 30 minutes |
| Separated | The tag's mode after 30 minutes with no word from its owner's devices |
| Slot | A 15-minute period. While near its owner, the tag's key changes at the start of each slot |
| Sighting | One beacon heard by a finder, with the time and the finder's own location |
| Report | One sealed sighting, sent to our servers |
Keys and sealing:
| Word | Meaning here |
|---|---|
| Key pair | A private key, kept secret, and a public key made from it, which can be shared. What one locks, only the other opens |
| Elliptic curve | The kind of math behind our key pairs. Ours is the curve named P-224, so a public key fits in 28 bytes |
| Base point, G | A fixed starting point on the curve. A private key is a number d, and its public key is the point d × G. Working out d × G is fast. Getting d back from it is not possible in practice |
| Master keys | The item's first key pair and a 32-byte secret, made at pairing. The private master key never leaves the owner's devices |
| Slot key | The key pair for one slot, worked out from the master keys. The tag broadcasts the slot public key |
| Hashed key | A 32-byte SHA-256 hash of a slot public key. Our servers file reports under it |
| Seal | Lock a sighting with the slot public key, so only the slot private key opens it |
| Ownership proof | A signature made with a slot private key. It shows the asker owns that key |
| Keychain | The owner's store of secrets on each device, copied between their devices with end-to-end encryption |
| End-to-end encryption | Data locked on one of the owner's devices and opened only on another. Our servers carry it but cannot read it |
Our servers:
| Word | Meaning here |
|---|---|
| Relay | A server run by an outside company that passes uploads to us. It sees the phone's network address but not the content |
| Upload token | A one-time pass our Token issuer signs blind. It proves the upload comes from a real Walnut phone, not which one |
| Blind signature | A signature on a value the signer cannot see. Later, the signer cannot match the value to the request |
| Device certificate | Proof, made by a chip in each phone at the factory, that the phone is a real Walnut phone |
| Partition | One of 1,024 slices of the Report store, chosen by hashed key |
| Quorum | A majority of a partition's copies in one region: 2 of its 3. A write is done when a quorum has it |
| Region | One of our four groups of data centers: US East, US West, Europe and Asia |
| Zone | One building or group of buildings inside a region, with its own power |
IDs in the story. Every ID is made up.
| ID | What it names | Example from the story |
|---|---|---|
| ac_4417 | An account ID | Emily Carter's account |
| it_4417 | An item ID | Emily's suitcase tag |
| W4417X93 | A tag serial number, printed inside the tag | Emily's tag |
| slot 672 | A slot number, counted from pairing | Sun 29 Nov, 08:15 Eastern, when Emily's tag became separated |
| h_82cd | A hashed key, shortened to its first 4 letters | The hashed key of Emily's tag in slot 672 |
| w_51 | A watch ID | Emily's "tell me when it is found" |
| lk_91 | A share link ID | The link Emily sends Marcus |
| it_8801 | An item ID | The tag Derek hid in Megan's car |
1.3 Every kind of request and change
Each kind comes in at a different rate and is handled by different parts. Every row is covered by a stage or a deep dive.
| Kind | What it is | How big or how often | Part that handles it | Outside company that takes part |
|---|---|---|---|---|
| Pairing | Tie a new tag to one account | About 500,000 a day | Pairing service | none |
| Beacon | A tag's broadcast | Every 2 seconds, from each tag | The tag, the Finder app | none |
| Report upload | A batch of sealed reports | 2.4 billion batches a day, 9.6 billion reports | Upload gateway, Report store | Two Relay companies |
| Token request | A phone asks for 4 upload tokens | A little more than one token per batch, for the few that expire | Token issuer | none |
| Lookup | An owner's phone asks for its item's reports | 200 million a day | Query service | none |
| Watch | "Tell me when it is found" | 10 million items watched at once | Query service, Watch list, Notification sender | none |
| Share link | An item's place shown to a named person | 200,000 new links a day | Share service | none |
| Lost Mode | The owner's message for whoever finds the item | About 100,000 a day | Pairing service | none |
| Owner info | A stranger taps a found tag with their phone | About 200,000 a day | Owner info page | none |
| Unwanted tracking alert | A phone warns its user about an unknown tag | About 2 million a day | The alert rule on each phone | Other phone makers, whose phones run the same rule |
1.4 Functional requirements
- Pair an item. Tie a tag to one account. Another account cannot pair it until the owner removes it.
- Report sightings. Any finder that passes a separated item reports where it was, sealed for the owner.
- Find my item. The owner's devices show the item's places from the last 7 days on a map.
- Tell me when found. The owner can ask for a push message when a lost item is next reported.
- Share the place. The owner can let a named person, such as an airline agent, see the place until a set time.
- Ring and identify. Play a sound on the tag. Anyone who taps a found tag with a phone sees a masked owner contact, and the owner's Lost Mode message.
- Warn about unknown tags. A phone warns its user when a tag that is not theirs travels with them.
- Share with family. The owner can share an item with up to 5 people.
- Remove an item. After removal, the tag can be paired with a new account.
- Delete my data. Delete an account's items, watches and links on request.
Out of scope: finding a phone that is online, since it reports its own location. So are locking or wiping a lost phone, precise finding by a second radio at close range, and making the tags.
1.5 Non-functional requirements
- Private. Walnut cannot learn where an item is or which phone reported it. Only the owner's devices can open a report.
- Not followable. A stranger who records the beacons can link them for at most 15 minutes near the owner, and 24 hours when separated.
- Fresh. A report reaches the owner within 1 hour of the sighting at p99, meaning for 99 of 100 reports. From a phone saving battery it takes up to 3.5 hours.
- Capacity. 667,000 reports a second and 7,000 lookups a second.
- Durable. A stored report survives the loss of a zone; and of a region, for reports written while both regions were up. Reports are kept 7 days.
- Available. Uploads and lookups work 99.95% of a month, about 22 minutes of failure at most.
- Expensive to fake. One device certificate can send at most 48 batches a day. A batch holds at most one report per hashed key.
- Warn in time. An unknown tag that travels with a person raises an alert after about one hour together.
- Battery. A tag runs about a year on one coin battery, so the tag never scans for other devices. After each beacon it listens a few milliseconds, so a nearby phone can connect to it.
1.6 The numbers
| Number | How we get it | Result | What it decides |
|---|---|---|---|
| Finders | Walnut phones with finding on | 1 billion | Most places with people have a finder within minutes |
| Separated items | 200 million tags × 40% away from their owner + 2 billion Walnut laptops and phones × 1% offline and away | About 100 million at any moment | The number of beacons finders report |
| Reports a day | 100 million items × 96 reports a day on average: thousands for a tag at an airport, none for one in a closed drawer | 9.6 billion a day, about 111,000 a second | Writes dominate: an append-only store, split by hashed key |
| Design capacity | The Sunday after Thanksgiving is about 3 times the average, about 333,000 a second; we keep 2 times that | 667,000 reports a second | The write rate every part of the upload path is sized for |
| Batches | 9.6 billion reports ÷ 4 reports a batch on average | 2.4 billion a day, about 27,800 a second; 167,000 at design | One token per batch, so the Token issuer signs about 27,800 a second, a little more for the few that expire |
| Report size | 4 time + 1 confidence + 29 one-time key + 10 sealed place + 16 check value | 60 bytes; 92 with the hashed key; 92 + 8 bytes for the receive time and row overhead = 100 stored | Small rows; storage is cheap next to the write rate |
| Storage | The store keeps every report it receives. 9.6 billion × 100 bytes = 960 GB a day × 8 days on disk × 6 copies | About 46 TB | Whole day tables are dropped after 7 days, so nothing is deleted row by row |
| Lookups | 200 million a day ÷ 86,400 × 3 at the evening peak | About 7,000 a second | Lookups are few next to uploads |
| Reads | A lookup asks for 3 to 21 hashed keys. A separated key lives 24 hours, so each sits in at most 2 day tables: about 24 reads a lookup on average. 7,000 lookups × 24 | About 170,000 reads a second | Writes are 667,000 reports × 2 regions = 1.33 million a second, so reads are about 1 in 8. Each lookup reads its rows straight from the store, with no cache |
What these numbers tell us. Storage is small: about 46 TB. The hard parts are elsewhere:
- 667,000 sealed writes a second that the store can neither read nor check;
- keys that change every 15 minutes, yet stay findable for the owner;
- uploads that hide the finder, yet are limited per phone.