Product Analytics at Scale: An Event Pipeline Blueprint on AWS and GCP
- reading time
- 2 min
- published
- 14 Jul 2026
- industry
- B2B SaaS
A reference architecture for product analytics — event collection on Lambda or Cloud Run, streaming through Kinesis or Pub/Sub, and modeling in BigQuery.
Every serious product eventually asks the same question: what are users actually doing? Off-the-shelf analytics tools answer it until the day you need to join product events with your own database, price by usage, or feed a partner dashboard. At that point you want an event pipeline you own — and the good news is that the reference architecture is now well-trodden on both AWS and GCP.
The reference architecture
The shape is the same on either cloud: collect events at a thin API, stream them, land them raw, then model them in a warehouse. Every component is managed and serverless — there is nothing to patch at 2 a.m.
flowchart LR
SDK["Web / Mobile SDK"] --> COL["Collector API<br/>AWS Lambda / Cloud Run"]
COL --> K["Event Stream<br/>Kinesis / Pub-Sub"]
K --> LAKE[("Data Lake<br/>S3 / GCS")]
K --> DF["Stream Processing<br/>Dataflow / Flink"]
DF --> BQ[("Warehouse<br/>BigQuery / Redshift")]
LAKE --> BQ
BQ --> DBT["dbt Models"]
DBT --> DASH["Dashboards<br/>Looker / Metabase"]
A cloud-agnostic event pipeline: the same shape on AWS and GCP.
Collection: boring, tiny, unbreakable
The collector is a deliberately dumb endpoint — validate the schema, stamp the server time, push to the stream. On AWS that is API Gateway in front of Lambda; on GCP, Cloud Run. Both scale to zero between bursts and to thousands of requests per second during them, which is exactly the traffic profile analytics has.
- Version every event schema from day one — analytics-v1.page_viewed, not page_viewed.
- Accept batches, and let clients retry: at-least-once beats dropped data; dedupe downstream on event IDs.
- Never block the product on analytics — fire and forget, with a client-side queue.
The warehouse is the product
Raw events land in the lake for cheap replay; modeled tables live in the warehouse. BigQuery has become the default for teams without a data platform group — no clusters to size, SQL your whole team knows, and dbt turns event soup into documented, tested models for activation, retention, and revenue.
The discipline that separates useful analytics from a swamp is treating models like code: dbt in CI, schema tests on every merge, and one owned definition for each business metric. When “weekly active” means one thing everywhere, dashboards stop being arguments.
What it costs and when to build it
This stack runs on managed services with generous free tiers — early-stage teams typically pay tens of dollars a month, not thousands. Build it when you first catch yourself exporting CSVs to answer a product question, and definitely before you promise a customer a usage-based invoice. Retrofitting event history is the one thing this architecture cannot do for you.