Keeping track of shipments minute by minute: How Mercado Libre uses real-time analytics for on-time delivery

Nathalia Rivera2 Aug 2022

Problem

Mercado Libre's shipping network spans several countries, time zones and carriers, and its nodes doubled or tripled after pandemic order growth while customers still expected delivery within 48 hours. Real-time data went to Kibana for monitoring, and historical data went to Teradata for analysis. The two stacks grew in parallel without working together. Operations teams needed specialized BI teams for visualizations, maintenance caused downtime, the Elastic store was ungoverned with time-limited data, and entities could not be related as in SQL.

Example from the article: The operations team watched live shipment streams in Kibana, while analysts built reports on Teradata history, and the two data sets did not work together.

Solution in brief

Move real-time and historical data into BigQuery and serve both from one origin, using tables over different time windows instead of a live-log view. New streams enter through a "Data Producer Model" that turns JSON into partitioned columnar tables and generates the Looker code.

Questions this case answers
  • How to give operational teams near real-time metrics and historical analysis from one governed store when monitoring and warehouse systems grew in parallel and cannot be joined
  • How to serve near real-time monitoring and historical analysis from one data source instead of two parallel stacks?
  • How to let operations teams publish new data streams and dashboards without waiting for a BI team?
  • How to keep the cost of near real-time dashboards under control?

Tools and methods

  • BigQuery — single store for near real-time and historical data
  • Looker / LookML — modeling layer, dashboards and Explores on top of BigQuery
  • Data Producer Model (MPD) — process where business teams publish data streams as "data domains"
  • Java utility app — generates LookML for new datasets
  • Lams and Spectacles — validate LookML syntax and test definitions and data in CI
  • BigQuery information schema, Looker Blocks, BigQuery logs — cost and performance tracking
Continue reading — it's free

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