Internal Data Flow
This document describes the interaction paths, communication protocols, and the basic flow of data among the components of SynxDB Cloud.
SynxDB Cloud is a cloud-native data warehouse built on the Kubernetes (K8s) platform. Its architecture decouples computing resources (query execution) from data storage (persistence), allowing each to be scaled independently and on-demand. All core business components run as containerized Pods in the Kubernetes cluster, where their resource scheduling and lifecycle are managed by Kubernetes.

The following sections explain the interaction paths, communication protocols, and basic data flow among the components, as illustrated in the diagram above.
Platform user management flow
Platform users send requests to the
dbaas-integrationcomponent viaHTTPS.The
dbaas-integrationcomponent interacts with theCoordinatorcomponent viaTCP.The
dbaas-integrationcomponent can also interact with an optional externalPostgreSQLdatabase viaTCP.
Database user query flow
The system provides two query paths for database users:
Query flow via the Web UI
A user’s
HTTPrequest first reaches thecloudbeavercomponent.cloudbeaverforwards the request to thecoordinator-proxycomponent viaHTTP.coordinator-proxythen passes the request to theCoordinatorcomponent viaTCP.
Query flow via a direct client connection
Database users or applications use the
PostgreSQL Frontend/Backend Protocol(based onTCP) to connect directly to theCoordinatorcomponent for data transfer.
Internal query execution and data exchange flow
After receiving a query, the
Coordinatorcomponent communicates with one or moreSegmentcomponents in aWarehousevialibpq/TCPto distribute tasks.Within the same
Warehouse,Segmentcomponents exchange data directly with each other usingInterconnect(based onUDPorTCP).The
Coordinatorcomponent interacts with components inside theUnionStore ClusterviaTCP.
Data persistence and read flow
Components within the
UnionStore Cluster(pageserver,safekeepers) communicate with each other through an internal protocol.UnionStore ClusterandWarehousesegments interact with an externalOSS(Object Storage Service) viaHTTP(S)to perform final data reads and writes.