Skip to content

// diagrams › aws

Serverless clickstream analytics on AWS

Own your clickstream: API Gateway and Lambda collect events, Kinesis and Firehose land them in S3, Athena and QuickSight answer questions. Why each piece is there and where the costs hide.

Opens a copy in the editor, in a new tab, ready to change. No account needed.

Clickstream analytics architecture on AWS: a website and app send events to API Gateway, a Lambda standardises them into Kinesis Data Streams, Firehose writes one-minute batches to S3, Athena queries the files and QuickSight shows dashboards; an optional Lambda feeds Amazon Personalize.

What’s in this diagram

services and parts

  • Website and mobile app
  • Analysts and merchandisers
  • Collection API
  • Standardise record
  • Kinesis Data Streams
  • Data Firehose (1-minute buffer)
  • Raw clickstream bucket
  • Athena (SQL)
  • QuickSight dashboards
  • Format for Personalize
  • Amazon Personalize

groups

  • AWS Cloud
  • Region
  • Ingest
  • Store and analyse
  • Optional: recommendations

Key points

  • Collect, stream, store, then query: each stage is a managed service with no servers to run.
  • The stream in the middle exists so more than one consumer can read the same clicks, such as a recommendation engine.
  • Firehose's one-minute buffer makes this near real-time, not real-time.
  • Raw JSON is easy to land and expensive to query at scale. Plan for a tidier, partitioned copy.

The whole story, step by step: Clickstream analytics on AWS: a serverless pipeline.

Your diagram is one sentence away.

Start drawing, free

No account needed to start.