一人工程 · solus opus

← 全部作品

一人工程api-gatewaysologateway

solo engineer 没有 API gateway,我自己就是 API gateway

团队有 API gateway。

API gateway:API 网关。AWS API Gateway:Amazon API Gateway。Kong:open source API gateway。Apigee:Google API gateway。Tyk:modern API gateway。Zuul:Netflix API gateway。$3-$10 / million requests in API gateway.

每 startup 1 个 API gateway + 1 个 Kong + 1 个 rate limit + 1 个 auth integration。$100K-$300K / 年.

solo engineer 没有 API gateway。

我自己就是 API gateway。

我想 route 就 route、想 limit 就 limit、想 auth 就 auth、想 aggregate 就 aggregate。我不需要 API gateway、不需要 AWS API Gateway、不需要 Kong、不需要 Apigee、不需要 Tyk、不需要 Zuul.

我没 API gateway 的必要——Vercel = API gateway。我没 AWS API Gateway 的必要——没 AWS。我没 Kong 的必要——没 Kong。我没 Apigee 的必要——没 Apigee。我没 Tyk 的必要——没 Tyk。我没 Zuul 的必要——没 Zuul。我没 $3-$10 / million requests 的必要——Vercel free。我没 rate limit 的必要——Vercel auto rate limit。我没 auth integration 的必要——NextAuth.js。我没 $100K-$300K / 年 的必要——没 API gateway infrastructure.

团队的 API gateway 价值是「让 API 集中管理 + rate limit + auth + 聚合」。前提是有 multiple API、需要 central management、需要 rate limit。solo engineer 没这个问题——访问量 1000、Next.js = gateway、commit log 是 rate limit.

一人工程的 API gateway = Next.js API Routes + Vercel。不是 Kong + AWS API Gateway $10/M + gateway 团队.