convex-backend

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Convex Backend

Convex 后端

Use Convex to build type-safe backend logic with realtime data sync.
使用Convex构建具备实时数据同步的类型安全后端逻辑。

Quick Start

快速开始

bash
npm install convex
npx convex dev
npx convex deploy
bash
npm install convex
npx convex dev
npx convex deploy

Implementation Tips

实施技巧

  • Define schema and validation before writing functions.
  • Keep mutations idempotent where possible.
  • Use auth identity checks in every privileged query/mutation.
  • Add indexing early for high-read collections.
  • 在编写函数前定义模式和验证规则。
  • 尽可能保持突变操作的幂等性。
  • 在每个有权限的查询/突变操作中添加身份验证检查。
  • 为高读取量的集合提前添加索引。

Related Skills

相关技能

  • firebase-app-platform - Alternative managed backend
  • agent-observability - Instrument AI-driven backend flows
  • firebase-app-platform - 替代的托管后端方案
  • agent-observability - 为AI驱动的后端流程添加监控