Tinder (Dating App) 00:00:01 One swipe and no match Sam likes Noor. Design a mutual-match system like a dating app, where a single private preference is recorded but should not announce a match before both people have expressed it. A member likes a profile. One quick gesture is the whole question. The gateway authenticates Sam, applies the configured rate policy and sends the swipe to the service authorized to record it. The reply says so. The other member is told nothing. Profiles with photo addresses. The phone loads the pictures in advance from the edge. Separate durable preference state from deck refill and picture prefetch. The latter can be retried without manufacturing a reciprocal like. 00:00:41 The reciprocal swipe produces one shared match Noor likes Sam the next day. The operation can now discover the reciprocal preference. Both sides need the same durable identity for the match even if requests overlap or are retried. Sam liked Noor yesterday. To the system this is an ordinary like. Both members' requests would compute this id. A creation that runs twice leaves one match. The reply to the swipe says match. The phone shows the match screen. A live message if the app is open, otherwise a push. The phone drops repeats by match id. Derive a stable pair key and create the match conditionally under that key. Notifications can be redelivered independently and deduplicated by match identity. 00:01:25 Build a deck without exposing exact positions The next deck starts from a viewer's current location and eligibility preferences. This design uses coarse spatial candidates before a final distance, privacy and policy check. The phone sends its present place in the body, because people travel. Retrieve eligible candidates for the illustrative eighty-kilometre search area, then apply the user's mutually applicable discovery constraints. Scores come back. Taking only the top hundred would make every deck alike. The phone fetches the next ten pictures from the edge while the first is on screen. Give users a sensible mix of candidates and apply blocking rules before exposing anyone. Keep exact sensitive coordinates out of client responses and broad caches. 00:02:08 A circle rarely matches a grid cell A geohash prefix describes a region, not a distance from a person. Very fine cells make an eighty-kilometre circle expensive to cover, and coarse cells can scoop up distant candidates. Six letters: 27,000 cells. Good for storing a rounded place, wrong for a wide search. Five letters: about 840 cells. Four letters: about 26 cells by area, and more because the circle cuts through the cells at its border. Cells only narrow the search. Compute the real distance for each person found, and drop those outside the circle. Cover the entire query area, including neighbors at cell boundaries. Then measure distance over authorized coordinates. Cell counts vary with latitude, resolution and the circle's position. 00:02:57 Two regions can each miss the other swipe Sam's update is committed in one region and Noor's in another. Before replication converges each local reader can see only one side. Their silence alone cannot prove that a match is absent. Sam's like is stored in Tokyo, Noor's in Paris. Copying between the regions has not finished. Both see one row. The pair's key chooses Paris. Sam's like travels there. A deterministic home for the pair, or a repairable durable reconciliation workflow, resolves the race. The product can promise eventual notification without allowing duplicate match records.