Skip to content
全部能力
平台packages/platform/health

health 能力包

所有后端服务的存活 + 就绪探针;把 db / queue / search 等下游聚合进同一份 /healthz 响应。

打开文档
稳定性
稳定
作用域
全局
边界
packages/platform/health
healthpackages/platform/health
基础层
运行时栈5 layers
  • edge
  • gateway
  • services
  • platform当前层
  • storage
可用性
99.50%
解析后的配置health.config

可用性

99.50%

+0.03%

p99 延迟

25 ms

-4%

活跃连接

3,897

活跃租户

161

+6%
packages/platform/healthplatform · 最低共享层 · 与应用零耦合
使用方式health.ts
typescript
health.ts
1import { healthCheck } from "@nebutra/health";
2
3export const GET = healthCheck({
4  checks: {
5    db: () => prisma.$queryRaw`SELECT 1`,
6    redis: () => redis.ping(),
7    queue: () => queue.ping(),
8  },
9});