Overview
Tencent Cloud CloudBase (TCB) is an integrated backend cloud service platform. It provides capabilities such as SCF, cloud hosting, authentication, and storage. TencentDB for PostgreSQL can be deeply integrated with CloudBase. This integration enables full-stack application development that combines frontend direct connection + SCF + AI capabilities.
Integration Architecture
┌──────────────────────────────────────────────────────┐
│ Frontend Application │
│ (Web / WeChat Mini Program / UniApp) │
└────────────────────┬─────────────────────────────────┘
│
┌────────────┼────────────┐
▼ ▼ ▼
┌──────────────┐ ┌─────────┐ ┌───────────────────┐
│ CloudBase │ │ REST │ │ CloudBase │
│ Authentication Service │ │ API │ │ SCF │
│ (Login / JWT) │ │ (CRUD) │ │ (Business Logic) │
└──────┬───────┘ └────┬────┘ └─────────┬─────────┘
│ │ │
└──────────────┼───────────────┘
▼
┌──────────────────────────────────────────────────────┐
│ TencentDB for PostgreSQL │
│ pgvector + tencentdb_ai + Apache AGE + PostgREST │
└──────────────────────────────────────────────────────┘
Integration Methods
You can directly create a CloudBase environment with TencentDB for PostgreSQL via the API.
Typical Application Templates
AI Q&A Mini Program
Frontend: WeChat Mini Program.
Authentication: CloudBase WeChat Login.
Backend: SCF + PostgreSQL.
AI:tencentdb_ai + pgvector RAG.
Enterprise Knowledge Base
Frontend: Vue 3 Web Application.
Authentication: CloudBase Enterprise WeChat SSO.
Backend: Cloud-hosted Node.js + PostgreSQL.
Storage: CloudBase COS (files) + PostgreSQL (structured data).
Multi-Platform Todo Application
Frontend: UniApp (H5 + Mini Program + App).
Authentication: CloudBase Phone Number Login.
Data: PostgreSQL REST API.
Real-time: CloudBase Real-time Push.
References