Reference architecture · Banking

AI-enabled Cash Management System on Tencent Cloud

A multi-AZ, multi-VPC architecture centered on secure transaction processing, controlled AI assistance, and end-to-end observability. The diagrams emphasize traffic flow, trust boundaries, and monitoring coverage.

Flow 01

Production request and data flow

Public traffic is protected at the edge, distributed across two isolated application VPCs, and routed to multi-AZ TKE clusters. Shared data services reside in a private data VPC.

Channels Corporate channelsWeb · Mobile · Open API Bank private channelsBranch · Ops · Core banking Access and security EdgeOneWAF · DDoS · Bot · TLS · Origin group Direct Connect / VPNPrivate routing · No public edge dependency Application isolation Application VPC AIndependent TKE cluster · AZ 1 + AZ 2Public CLB A / Internal CLB A → TKE IngressAZ 1 node poolCMS servicesAI AgentOTel CollectorAZ 2 node poolCMS servicesAI AgentOTel Collector Application VPC BIndependent TKE cluster · AZ 1 + AZ 2Public CLB B / Internal CLB B → TKE IngressAZ 1 node poolCMS servicesAI AgentOTel CollectorAZ 2 node poolCMS servicesAI AgentOTel Collector AI and governed actions AI Agent servicePlanning · Retrieval · Tool orchestrationRuns as TKE workload in both VPCs Agent Tool GatewayAllowlisted CMS APIs · Policy · AuditApproval required for high-risk actions TokenHubUnified OpenAI-compatible model APIModel routing · Quotas · Usage metrics Private data services Data VPC · private only · connected through CCNTencentDB for RedisAZ 1 primary · AZ 2 replicaTDSQL for MySQLTDSQL-D · Strong-sync multi-AZ SETsCOS · CLS · AuditBackup · Logs · Evidence
2Independent application VPCs
2 × 2TKE clusters × availability zones
1Private data VPC and system of record
0Direct AI-to-database connections
Flow 02

RUM, APM and AI Agent observability

A single trace context connects the user experience to application spans, model calls and governed tools. Infrastructure products retain their own metrics and logs.

Application traceAI / Agent traceProduct metrics and logs
Runtime path and trace propagation BrowserTCOP RUM SDK EdgeOneMetrics + access logs CLB / IngressMetrics + optional span CMS ServicesOTel APM spans AI AgentAgent + tool spans Shared trace contexttraceparent → ingress span → CMS span → agent span → openai.chat span → tool span → SQL / Redis span Collection and export OpenTelemetry SDK / AgentHTTP · service · Redis · SQL instrumentation OTel CollectorBatch · Retry · Filter · OTLP export TCOP OTLP EndpointAPM + LLM / Agent views Three complementary observability views TCOP RUMPage load · Web Vitals · JS errorsXHR / Fetch latency · geographyBoundary: real user browser experience TCOP APMService topology · P95 / P99 latencyErrors · slow SQL · Redis client spansBoundary: ordinary application spans TCOP LLM / AgentAgent entry · model · token countsModel latency · errors · tool callsBoundary: generative AI and agent spans TokenHub metrics → TCOP alarmsTokens · TPM · RPM · TTFT · TPOT · rate limits · timeout · cache hit
Control plane

Banking-grade AI controls

The Agent is useful only when its authority, data boundary and telemetry are deliberately constrained.

Access

Tool-level authorization

  • Expose only allowlisted CMS APIs.
  • Use scoped service identity and short-lived credentials.
  • Require approval for payments, transfers and limit changes.
Data

System-of-record protection

  • No direct Agent connection to TDSQL-D.
  • Redis remains reconstructable, non-authoritative state.
  • Validate every tool input at the gateway.
Observability

Metadata-first tracing

  • Set TRACELOOP_TRACE_CONTENT=false.
  • Do not export prompts, completions or secrets.
  • Retain model, token, latency, error and tool status.

Monitor end to end

Browser experience → API latency → service topology → Agent execution → model call → tool call → CMS API → Redis / SQL client latency.

Do not overclaim

OpenTelemetry cannot automatically reveal internal EdgeOne or CLB processing. Use cloud-product metrics, access logs and security logs for those layers.