Graph-powered fraud detection for financial services
Get your free tickets
Tencent logo

Tencent streamlines infrastructure monitoring with SurrealDB

Industry: Technology

Tech stack simplification: from nine backend tools to one

Tencent integrated SurrealDB to unify its infrastructure monitoring stack. By leveraging SurrealDB's native graph capabilities, versioned data, and built-in analytics, Tencent replaced a fragmented system with a scalable, real-time monitoring platform.

Key challenges

Fragmented toolchain

Monitoring data lived across MySQL, Elasticsearch, Victoria Metrics, MongoDB, Doris, Trino, Rising Wave, Flink, and Dgraph.

High operational costs

Analysts struggled to pick the right storage or compute engines, increasing the platform team's maintenance burden.

Limited real-time analytics

Existing solutions lacked built-in graph views or recursive traversal for system relationships and time-based state transitions.

Massive log volumes

Scaling ingestion and queries for millions of time-series logs per day proved challenging.

Solutions

Graph-first modelling

Infrastructure components were modelled as graph nodes with edge-based relationships, enabling recursive traversal to trace event causality.

Versioned time-series data

Snapshots and change-logs were stored using complex record IDs for efficient time-travel queries and temporal filtering.

Pre-computed views

Aggregated metrics were persisted into table views, reducing dashboard query latency and aiding policy enforcement.

Live monitoring

Implemented LIVE SELECT on log tables for real-time alerts and diagnostics without polling.

Results

Unified data layer

SurrealDB replaced separate time-series, document, and graph stores, simplifying the stack.

Consistent low-latency access

Provided both historical snapshots and real-time streams from a single system.

Scalable log ingestion

Compound record keys and range filters handled millions of logs per day without schema changes.

Real-time alerts

Live queries powered alerting and UI refreshes, improving operational responsiveness.

Why SurrealDB?

SurrealDB's graph-native engine, versioned record access, complex IDs, record ranges, and LIVE SELECT queries provided Tencent with a unified and scalable foundation for infrastructure analytics and live telemetry.