跳转到内容

From Prototype to Production(从原型到生产)

知识库位置:FDE Knowledge Base/05 Delivery/Production/From-Prototype-to-Production.md

Prototype(原型) 和 Production(生产环境) 的差距非常大。

Prototype 通常关注:

Does it work?(它能不能跑起来?)

Production 关注:

Does it work reliably?(它是否可靠?)
Does it work securely?(它是否安全?)
Can we operate it?(我们能否运维它?)
Can we scale it?(它能否扩展?)

进入 Production(生产上线)需要考虑:

  • Retry(重试)
  • Timeout(超时)
  • Circuit Breaker(熔断器)
  • Failover(故障切换)
  • Authentication(身份认证)
  • Authorization(授权)
  • Secret Management(密钥管理)
  • Encryption(加密)
  • Logs(日志)
  • Metrics(指标)
  • Traces(链路追踪)
  • Alerts(告警)
  • CI/CD(Continuous Integration / Continuous Delivery,持续集成/持续交付)
  • Rollback(回滚)
  • Environment Management(环境管理:Dev / Staging / Prod,开发/预发/生产)
  • Runbook(运维手册)
  • Incident Response(事故响应)
  • SLA(Service Level Agreement,服务等级协议)
  • Support(支持体系)

尤其 AI 系统需要监控:

  • Token Cost(Token 成本)
  • Model Cost(模型成本)
  • Infrastructure Cost(基础设施成本)
  • Cost per Task(单任务成本)

FDE 的重要能力之一就是:

把“能跑”(It works)变成“能长期运行”(It runs reliably in production,能在生产环境长期稳定运行)。