Data Operations Center

Live city transit, queryable in milliseconds.

Every bus and tram in Gdańsk on one live map, with the full history of the network behind it. Ask a question in plain English and get an answer from live data in seconds.

—GPS records of history
10 severy vehicle, refreshed
~0.2 sto count all of it
Plain Englishis the query language

Why it matters

The problems it makes disappear

Yesterday's numbers

Most reports describe yesterday. Here you see the data as it is right now.

Dashboards that slow down

A year of history answers as quickly as an hour of it.

Data locked behind experts

Ask in your own words and see the answer and exactly how it was found.

History you can't afford to keep

Years of records stay cheap to store and instant to question.

Public transport is the showcase. The same platform fits any organisation whose data never stops arriving — fleets, logistics, sensors, payments.

How it works

One query layer over a stream and an archive

Gdańsk GPS APIevery 10 s Kafkarealtime stream S3nightly archive Apache Pinotrealtime + offline Live map Superset AIAsk · Filter · Report Grafana + Loki Gdańsk GPS APIevery 10 s Kafkarealtime stream S3nightly archive Apache Pinotrealtime + offline Live map Superset AIAsk · Filter · Report Grafana + Loki

AI

Ask, Filter, Report — in plain English

Ask

A plain-English question becomes guarded read-only SQL. You see the answer and the query that ran.

Filter

"Late 6 min near Wrzeszcz" narrows the live map. Works even when the database is busy.

Report

A 24-hour network report in about 30 seconds: each anomaly against its usual level, with likely causes from the news or "cause unknown".

Under the hood

Engineering, done properly

Data pipeline

  • Kafka streaming, with an Avro data contract enforced by Schema Registry
  • Hybrid Pinot tables: realtime stream and S3 batch history behind one query
  • Upsert table holding exactly one current row per primary key
  • Nightly S3 compaction

Query performance

  • Star-tree and sorted-column indexes, chosen from measured before/after numbers
  • Queries shaped to hit those indexes, checked with EXPLAIN PLAN
  • No result caching: every latency badge shows a real, live query time

Reliability

  • Every query has a timeout that ends in a clear error, not a hung page
  • “Pinot rejected it” (502) kept apart from “Pinot didn't answer” (504)
  • Restart policies and health checks on long-running services

AI, done safely

  • Model-written SQL passes a guard: one read-only SELECT, known tables, capped LIMIT
  • Structured outputs; the SQL shown is the SQL that actually ran
  • Per-IP rate limit on AI spend, and prompt caching
  • An eval harness, and an MCP server for operating the cluster from Claude

Security

  • Secrets kept out of git, mounted as Docker secrets
  • TLS through Caddy; basic auth in front of the Pinot admin API
  • Subresource Integrity on CDN scripts; CSP-restricted dashboard embedding
  • SSH limited to known addresses; access logs shipped to Loki

Delivery & operations

  • Every merged pull request cuts a release: a git tag, and CI builds immutable images traceable to their commit
  • Deploy or roll back from GitHub Actions: pick the release, read its plan, approve, and the job verifies the site serves it
  • Docker Compose for dev and prod, Kustomize for Kubernetes
  • Schema changes as pull requests, never edits in a live UI
  • Prometheus metrics, Grafana dashboards, Loki logs via Alloy

Quality

  • Python and JavaScript unit tests, plus HTTP tests against a real server
  • Every change through a reviewed pull request
  • Small modules with one job each; pure helpers kept free of the DOM

Get in touch

Contact