Problem
Roblox's analytics events landed in one table, events_hourly, partitioned only by date, hour and free-form tags. Teams ran batch jobs to extract their events into dedicated tables and defined schemas in the ETL step. At 2 trillion rows per day, queries were slow, and a six-hour delay for events_hourly and 24 hours for events_daily blocked pipelines. Events had no documentation or owner, and the cloud queue behind ingestion was expensive (the article cites 23 Gbps of cloud ingestion cost).
Example from the article: an ads impression event was sent as an unschematized string such as name=ads_impression&ads_key=s%2F561&count=3 and reached a dedicated table only through a batch extraction job.
Solution in brief
Give every event a Protobuf schema up front. The ingestion service converts incoming events to proto and writes them straight to per-event tables, so batch extraction disappears. A linter, a Hive table generator and CI make authoring cheap. Moving the queue in-house cut cost and delay.
Questions this case answers
- How to replace batch extraction from one unstructured events table with per-event schematized tables when many producer teams cannot change their code at once
- How to cut ingestion cost and latency when events arrive at trillions per day through a managed cloud queue
- How to stop running batch jobs that extract each event type from one giant raw events table?
- How to give analytics events a schema, an owner and a destination table without forcing every producing team to change code?
Tools and methods
- Protobuf schemas with custom options — define fields, owner, retention and destination table in one place
- Backward transitive compatibility — add or softly delete fields freely
- Proto linter and proto-to-Hive-DDL plug-in in CI — validate metadata, keep Hive tables in sync
- In-house queue-as-a-service (QaaS) and parquet writer — one topic per event, short retention
- Shadow writes — validate before cutover
Google or a one-time email code. No password.