with-agents

Architecting with Google Cloud — selected guide

How does Pokémon Go scale to millions of requests?

Ten case studies on scale, service boundaries, data platforms, machine learning, and security

Ten 2021–2023 case studies explain how teams handle global storage, concurrent requests, service boundaries, media ingestion, analytics migration, machine learning, healthcare data, and security response. Results describe the participating organizations' systems, not universal performance guarantees.

Google Cloud Tech 3 of 10
In this collection Browse 10 summaries 3 of 10

Pokémon GO needs nearby players to see the same world while keeping each player's catches and progress distinct. Niantic Labs technical manager James explains how its 2021 architecture separates player records from shared location data and prepares for large live events.

Key Points Covered

  • The database choice changed as the game matured. James says Datastore made it easy to start without managing storage infrastructure. The team later chose Spanner for relational data, more complex indexed schemas, and globally consistent transactions. 03:21–05:29(opens in a new tab)
  • Catching a Pokémon and changing a shared location take different paths. A catch updates the player's record in Spanner. Gym battles and PokéStop lures update a location-based backend whose changes become visible to nearby players through eventual consistency: the shared view converges as updates propagate. 05:29–07:36(opens in a new tab)
  • Matching inputs produce a matching world view. James describes deterministic server behavior: nearby players receive the same Pokémon even when different servers handle them because the relevant inputs match. Caching, precise timing, and synchronized settings help keep those views aligned. 07:36–09:42(opens in a new tab)
  • Background processing builds and checks the world. Dataflow combines map and player-submitted location sources to build gyms and PokéStops. Other jobs examine player logs for cheating—for example, appearing in Japan and then Australia a minute later. For live events, the team pre-scales parts of the system and monitors them with several tools. 08:39–11:47(opens in a new tab)

Full video: https://www.youtube.com/watch?v=YG7GXjZ8En4(opens in a new tab)

Search

Search field guides and resources across the site.

    Keyboard shortcuts

    Press ? to open this guide (usually Shift + /). Close it before using other site shortcuts.

    Show keyboard shortcuts
    ?
    Search site
    Ctrl + K
    Close the current dialog or menu
    Esc

    Site shortcuts are ignored while typing. Browser and extension shortcuts may take priority.