VK Product Analyst's Tools, or How We Work with Big Data

shveenkov13 Dec 2023

Problem

Product teams at VK keep knowledge about event data in Confluence pages, Google documents and developers' notes. It moves by word of mouth and goes stale or disappears. Mail has a web version and two mobile apps built by different teams, so events follow no common standard. Raw logs sit in Hadoop as arrays and JSON, so a query like data[1] = "open_calendar_tab" is unreadable to a newcomer and can run for hours at petabyte scale.

Example from the article: the author raises a scenario where an analyst needs a user segment for a New Year mailing and must find the right fields, pass the data to the mailing service and check that it arrives regularly.

Solution in brief

VK built Metida, an event registry that also loads data. Each event is described once (meaning, selector, field-to-column mapping), and only described events are copied into a wide ClickHouse table with ready-made cuts such as country and OS. Heavier cases go into YAML data marts in git with data quality checks.

Questions this case answers
  • How to make undocumented, semi-structured event logs from many teams and legacy products queryable by any analyst without tribal knowledge
  • How to keep a shared event description registry current when the owners of the events keep changing the product
  • How to stop losing knowledge about what product events and their fields mean?
  • How to let analysts query semi-structured raw event logs without decoding data[0] and data_json[\"id\"] every time?

Tools and methods

  • Event registry (Metida) — one place for event descriptions, screens, tags and field mapping
  • Wide events table (Activity Schema) — one ClickHouse column per described event parameter
  • ClickHouse, Redash — fast queries and ready BI templates
  • YAML aggregates on Spark, git, GitLab CI — documented data marts with dependencies
  • Great Expectations — data quality checks on aggregates
Continue reading — it's free

Google or a one-time email code. No password.