You are a data engineer at PixelForge Studios, a mobile gaming company whose flagship title has 500,000 daily active players. The game team needs real-time dashboards showing active sessions, in-app purchase revenue, and level completion rates so they can detect issues within minutes of a new update going live. The current batch pipeline updates every four hours, which is far too slow to catch problems before they affect a large portion of players.
You will create a Pub/Sub topic that receives player events, build an Apache Beam pipeline that windows, aggregates, and enriches the stream in real time, deploy it on Google Cloud Dataflow, and write the output to BigQuery for instant querying. You will also implement a side output for flagging suspicious purchase patterns that exceed normal spending thresholds.