Skip to content
New

Introducing Scale: SurrealDB Cloud for high availability and scale

Learn more

1/4

Tencent logo

Building a graph-first monitoring platform at internet scale

Tencent consolidated nine backend tools into SurrealDB, unifying document data and graph relationships in one engine to power real-time incident analysis across 8 million nodes and 50 million edges.

IndustryCloud & infrastructure services
Use caseGraph-first infrastructure monitoring
Scale8M nodes, 50M edges, 10K+ QPS

01 |OVERVIEW

Building a graph-first monitoring platform

Tencent operates internet-scale cloud and infrastructure services where reliability, fast incident response, and deep system visibility are non-negotiable. To simplify how teams monitor and debug production systems, Tencent integrated SurrealDB to unify its infrastructure monitoring stack. By combining native graph capabilities with versioned data access and built-in analytics, the team replaced a fragmented toolchain with a single, scalable, real-time monitoring platform.

Before SurrealDB, the monitoring and analysis experience spanned a patchwork of systems - MySQL, Elasticsearch, VictoriaMetrics (Prometheus-compatible), MongoDB, Doris, Trino, RisingWave, Flink (batch and stream processing), and Dgraph. That diversity gave teams flexibility, but it also meant every investigation started with a meta-problem: choosing the "right" storage or compute engine before you could even answer the question.

02 |THE CHALLENGE

The cost of a fragmented data stack

Tencent's platform managed many databases and processing layers at once. In practice, users had to decide which system to query depending on whether they were exploring time-oriented telemetry, searching, running analytics, or traversing relationships. For data analysts, that decision was especially difficult without deep familiarity with the strengths and tradeoffs of each engine. For the platform management team, the cost was even clearer: more systems to operate, more upgrades and failure modes to manage, more governance to enforce, and a higher ongoing maintenance burden.

At the same time, the most valuable monitoring workflows were increasingly graph-shaped. The team needed to model real operational context - process behaviour, parent/child derivations, and traffic relationships - and then query that context fast during incidents. Their data came in two complementary streams: periodic process "snapshots" that capture the state of a host at a moment in time, and real-time changelogs that record process actions as time-series messages. From those inputs, Tencent builds a process tree where process IDs are nodes, process attributes are node properties, and derivation relationships are directed edges.

The core requirement wasn't only to build and query the graph - it was to keep the graph continuously updated and versioned. Each new snapshot or changelog updates the previous graph state, producing a new "tree" that must be available quickly enough to support policy judgment. When an alert triggers, engineers need to reconstruct context from a window of time leading up to the fault, find the first appearance of a process, and understand how the state evolved from one version to another. Doing this across multiple engines made the workflow slow, complex, and operationally expensive.

03 |THE SOLUTION

Consolidating into a multi-model context graph

Tencent adopted SurrealDB as a unified data layer for monitoring correlation and graph-driven fault analysis, consolidating the existing toolchain into a single system that natively supports document data and graph relationships. Instead of forcing users to understand which storage or compute engine should answer each question, SurrealDB provides a consistent model for querying operational context - especially when that context is best represented as a graph.

SurrealDB's native graph model maps directly to Tencent's fault-analysis needs: processes and infrastructure entities become nodes, relationships become edges, and engineers can traverse multi-hop dependencies to understand blast radius or root cause context. This "context graph" approach is also how many teams build knowledge graphs for operations: connecting telemetry-adjacent entities (processes, workloads, services, hosts) with the relationships that matter during incidents.

Versioned data access was equally important. Tencent used SurrealKV to validate temporal graph requirements - essentially testing how well versioned graph states could support point-in-time investigations and replaying the evolution of a process tree. For broader production scenarios, they used SurrealDB with a distributed storage layer to scale the system while keeping the operational experience cohesive.

The production deployment reflects real monitoring scale: the cluster runs with 9 storage nodes and 6 compute nodes, sustains 10,000+ QPS, and manages a dataset of roughly 8 million nodes and 50 million edges. That capacity enables the team to treat the graph as a first-class monitoring substrate rather than an auxiliary system used only for niche investigations.

10K+

QPS

Production-grade scale

Manages 8 million nodes and 50 million edges with continuous real-time graph updates.

50M+

EDGES

Knowledge graph ready

50 million edges across 8 million nodes form the foundation for a broader knowledge graph.

04 |THE RESULTS

Turning context into actionable insight

By consolidating many systems into SurrealDB, Tencent reduced complexity for both end users and the platform team. Analysts no longer have to begin each investigation by choosing between a time-series engine, a search index, an OLAP layer, or a separate graph database. Instead, the operational "shape" of the problem can drive the investigation: start from an alert, pull the relevant time window, traverse the dependency graph, and reconstruct the context leading up to failure.

9 1

Consolidated toolchain

Replaced MySQL, Elasticsearch, MongoDB, Dgraph, Flink, and four other tools with a single platform.

8

FEWER TOOLS

Simplified operations

Fewer upgrades, less governance, fewer cross-system inconsistencies, and a smaller failure surface.

Operationally, fewer moving parts translated into less overhead - simpler governance, fewer upgrades to coordinate, fewer cross-system inconsistencies, and a smaller surface area for failures. On the workflow side, graph-native modelling made it practical to build and query process trees as they change, supporting fast multi-hop traversal and incident reconstruction patterns that align with graph databases, context graphs, and knowledge graphs.

05 |WHAT'S NEXT

The future of graph-driven observability

Tencent plans to extend the unified, graph-native platform across more infrastructure domains, evolving its context graph into a broader knowledge graph that connects services, processes, and dependencies in a single, queryable model.

A key focus is strengthening temporal graph capabilities, making it even easier to reconstruct historical states and analyse how relationships evolve over time. As the dataset continues to grow, Tencent also aims to build more advanced graph analytics on top of its millions of nodes and edges - turning the graph foundation into a long-term strategic asset for dependency analysis and intelligent fault resolution.

MORE CASE STUDIES

See what other teams have shipped

From knowledge graphs to AI assistants - how enterprise teams are building on the context layer.

GET STARTED

Start building with SurrealDB

The context layer for AI agents. Unify data. Unlock intelligence. Scale anywhere.

SamsungNVIDIAAppleVerizonTencent

SOC 2 Type 2

GDPR

Cyber Essentials Plus

ISO 27001

SurrealDB

The context layer for AI agents.

Documents, graphs, vectors, time-series, and memory.
One transaction, one query, one deployment.

Explore with AI

Stay in the loop

Tutorials, AI agent recipes, and product updates, every two weeks.

Independently verified

SOC 2 Type 2

GDPR

Cyber Essentials Plus

ISO 27001

Trust Centre

Copyright © 2026 SurrealDB Ltd. Registered in England and Wales. Company no. 13615201

Registered address: 3rd Floor 1 Ashley Road, Altrincham, Cheshire, WA14 2DT, United Kingdom

Trading address: Huckletree Oxford Circus, 213 Oxford Street, London, W1D 2LG, United Kingdom