管理出站使用
你被收费的项目 #
🌐 What you are charged for
你需要为从系统传输到已连接客户端的网络数据付费。所有服务都会产生外发流量费用——数据库、认证、存储、边缘函数、实时和日志传输。
🌐 You are charged for the network data transmitted out of the system to a connected client. Egress is incurred by all services - Database, Auth, Storage, Edge Functions, Realtime and Log Drains.
数据库出流 #
🌐 Database Egress
从数据库中获取数据时发送给客户端的数据。
🌐 Data sent to the client when retrieving data stored in your database.
示例: 用户在网上商店查看自己的订单历史。客户端应用向数据库请求获取用户的过往订单。订单数据被发送回客户端,这会产生数据库出站流量。
有多种方式可以与你的数据库互动,比如通过 PostgREST API 使用其中一个客户端 SDK,或者通过 Supavisor 连接池。在 Supabase 仪表盘上,通过 PostgREST API 的出站流量被标记为 Database Egress,而通过 Supavisor 的出站流量则被标记为 Shared Pooler Egress。
🌐 There are various ways to interact with your database, such as through the PostgREST API using one of the client SDKs or via the Supavisor connection pooler. On the Supabase Dashboard, Egress from the PostgREST API is labeled as Database Egress, while Egress through Supavisor is labeled as Shared Pooler Egress.
认证出口 #
🌐 Auth Egress
在管理应用的用户时,从 Supabase Auth 发送到客户端的数据。这包括像登录、注销或创建新用户这样的操作,例如通过 JavaScript 客户端 SDK。
🌐 Data sent from Supabase Auth to the client while managing your application's users. This includes actions like signing in, signing out, or creating new users, e.g. via the JavaScript Client SDK.
示例: 用户登录到一个在线商店。客户端应用请求 Supabase Auth 服务来认证和授权用户。会话数据,包括认证令牌和用户资料信息,会被发送回客户端,这构成了 Auth 出站。
存储出站 #
🌐 Storage Egress
从 Supabase 存储获取资源时发送到客户端的数据。这包括下载文件、图片或其他存储内容的操作,例如通过 JavaScript 客户端 SDK。
🌐 Data sent from Supabase Storage to the client when retrieving assets. This includes actions like downloading files, images, or other stored content, e.g. via the JavaScript Client SDK.
例子: 用户从一个网店下载发票。客户端应用向 Supabase Storage 请求从存储桶中获取 PDF 文件。文件被发送回客户端,从而产生存储外发流量。
边缘函数出口 #
🌐 Edge Functions Egress
在执行 Edge 函数时发送到客户端的数据。
🌐 Data sent to the client when executing Edge Functions.
例子: 用户在网上商店完成结账流程。客户端应用触发一个 Edge Function 来处理支付并确认订单。确认响应以及任何必要的细节会被发送回客户端,这会算入 Edge Functions 的出口流量。
实时出口 #
🌐 Realtime Egress
通过 Supabase Realtime 将数据推送给订阅事件的客户端。
🌐 Data pushed to clients via Supabase Realtime for subscribed events.
示例: 当用户在网店浏览产品页面时,他们的客户端会订阅实时库存更新。当库存水平发生变化时,Supabase Realtime 会向所有订阅的客户端推送更新,从而产生实时出站流量。
共享池出口 #
🌐 Shared pooler Egress
当使用共享连接池(Supavisor)访问你的数据库时,发送给客户端的数据。当使用共享连接池时,我们不会计算数据库出口流量,因为否则会重复计算(数据库 -> 共享池 + 共享池 -> 客户端)。
🌐 Data sent to the client when using the shared connection pooler (Supavisor) to access your database. When using the shared connection pooler, we do not count database egress, as this would otherwise count double (Database -> Shared Pooler + Shared Pooler -> Client).
示例: 你正在使用我们的 共享连接池,并且在你的后端查询发票列表。该查询返回的数据正在贡献给共享池出口流量。
日志排水出口 #
🌐 Log Drain Egress
数据已推送到已连接的日志接收端。
🌐 Data pushed to the connected log drain.
示例: 你设置了一个日志转储,发送到日志转储的每条日志都被视为出口流量。如果你的服务提供商支持,你可以切换 GZIP 选项来减少出口流量。
缓存出口 #
🌐 Cached Egress
缓存和非缓存出口流量有独立的配额和独立的定价。缓存出口流量是通过缓存命中从我们的 CDN 提供的流量。缓存出口流量通常是通过我们的 Smart CDN 存储时产生的。
🌐 Cached and uncached egress have independent quotas and independent pricing. Cached egress is egress that is served from our CDN via cache hits. Cached egress is typically incurred for storage through our Smart CDN.
费用是怎么计算的 #
🌐 How charges are calculated
出流量按每GB收费。只有超过你订阅计划的配额才会产生费用。这个配额叫做统一出流量配额,因为它可以在所有服务(数据库、认证、存储等)中使用。
🌐 Egress is charged by gigabyte. Charges apply only for usage exceeding your subscription plan's quota. This quota is called the Unified Egress Quota because it can be used across all services (Database, Auth, Storage etc.).
出站流量会在计费周期内累积,并在下一个周期开始时重置。已经使用的流量无法追溯减少,所以下面的优化只会降低未来的出站流量。如果你的组织受到出站流量限制,这个限制会在下一个计费周期开始时解除,或者如果你升级套餐或关闭消费上限限制,就会立即解除。
🌐 Egress accumulates over the billing cycle and resets at the start of the next cycle. Usage that has already been served cannot be reduced retroactively, so the optimizations below lower future egress only. If your organization is restricted for egress, the restriction clears at the start of the next billing cycle, or immediately if you upgrade your plan or disable your Spend Cap.
在你的发票上的用途 #
🌐 Usage on your invoice
在你的账单上,使用量显示为“出口 GB”和“缓存出口 GB”。
🌐 Usage is shown as "Egress GB" and "Cached Egress GB" on your invoice.
价格 #
🌐 Pricing
$0.09 每 GB 每月用于未缓存的出流量, $0.03 每 GB 每月用于缓存的出流量。只有超过你订阅计划配额的使用量才会收费。
| 计划 | 出站流量配额(未缓存 / 缓存) | 每月超额使用(未缓存 / 缓存) |
|---|---|---|
| 免费 | 5 GB / 5 GB | - |
| 专业 | 250 GB / 250 GB | $0.09 每 GB / $0.03 每 GB |
| 团队 | 250 GB / 250 GB | $0.09 每 GB / $0.03 每 GB |
| 企业 | 自定义 | 自定义 |
计费示例 #
🌐 Billing examples
在配额内 #
🌐 Within quota
该组织的出口使用量在配额范围内,所以不会产生出口费用。
🌐 The organization's Egress usage is within the quota, so no charges for Egress apply.
| 项目 | 单位 | 费用 |
|---|---|---|
| 专业计划 | 1 | $25 |
| 小型计算小时 | 730 小时 | $15 |
| 外发流量 | 200 GB | $0 |
| 缓存外发流量 | 230 GB | $0 |
| 小计 | $40 | |
| 计算积分 | -$10 | |
| 总计 | $30 |
超出配额 #
🌐 Exceeding quota
该组织的出口使用量超过了未缓存出口配额50 GB和缓存出口配额550 GB,因此会产生额外费用。
🌐 The organization's Egress usage exceeds the uncached egress quota by 50 GB and the cached egress quota by 550 GB, incurring charges for this additional usage.
| 项目明细 | 单位 | 费用 |
|---|---|---|
| 专业版计划 | 1 | $25 |
| 小型计算小时 | 730 小时 | $15 |
| 出带宽 | 300 GB | $4.5 |
| 缓存出带宽 | 800 GB | $16.5 |
| 小计 | $61 | |
| 计算积分 | -$10 | |
| 总计 | $51 |
查看使用情况 #
🌐 View usage
使用页面 #
🌐 Usage page
你可以在组织的使用情况页面查看出口使用情况。该页面默认显示所有项目的使用情况。要查看特定项目的使用情况,请从下拉菜单中选择它。你也可以选择不同的时间段。
🌐 You can view Egress usage on the organization's usage page. The page shows the usage of all projects by default. To view the usage for a specific project, select it from the dropdown. You can also select a different time period.

在“总出站流量”部分,你可以查看所选时间段的使用情况。将鼠标悬停在特定日期上可以查看按服务的具体分解。请注意,这包括缓存的出站流量。
🌐 In the Total Egress section, you can see the usage for the selected time period. Hover over a specific date to view a breakdown by service. Note that this includes the cached egress.

另外,你可以在下面看到缓存的出口:
🌐 Separately, you can see the cached egress right below:

自定义报告 #
🌐 Custom report
- 在 Observability 页面 上,点击左侧导航菜单中的 新建自定义报告
- 创建新报表后,点击 添加模块 为一个或多个 Supabase 服务添加图表

调试使用 #
🌐 Debug usage
为了更好地了解你的出站流量使用情况,找出流量最大的来源。查看最常使用的数据库查询,或者分析最常请求的 API 路径,以确定高出站的端点。
🌐 To better understand your Egress usage, identify what’s driving the most traffic. Check the most frequent database queries, or analyze the most requested API paths to pinpoint high-egress endpoints.
常用数据库查询 #
🌐 Frequent database queries
在顾问的 查询性能视图 中,你可以看到最常用的查询以及返回的平均行数。
🌐 On the Advisors Query performance view you can see the most frequent queries and the average number of rows returned.

最常请求的 API 接口 #
🌐 Most requested API endpoints
在 Logs Explorer 中,你可以访问 Edge 日志,并查看最常访问的路径,以识别查询量大的端点。这些日志目前还不包含响应字节数据。该数据将来也会提供。
🌐 In the Logs Explorer you can access Edge Logs, and review the top paths to identify heavily queried endpoints. These logs currently do not include response byte data. That data will be available in the future too.

优化使用 #
🌐 Optimize usage
- 查询数据库时减少选择的字段或条目数量
- 通过优化客户端代码或使用缓存来减少查询或调用的次数
- 对于更新或插入查询,如果不需要的话,配置你的 ORM 或查询不要返回整行数据
- 在通过 Supavisor 进行手动备份时,删除不需要的表格和/或减少备份频率
- 查看存储优化指南获取减少存储外发的小技巧
超额 #
🌐 Exceeding Quotas
如果你使用的是付费计划并且已关闭花费上限,或者你的组织使用的是团队计划及以上,你将需要支付任何超出部分的费用。
🌐 If you are on a paid plan and have Spend Cap disabled or your organization is on Team Plan or above, you will pay for any overages.
当你在使用免费计划或启用了消费上限时超出配额,你会收到发送到账单邮箱的通知,并进入宽限期。更多细节请参阅我们的公平使用政策。
🌐 When you are exceeding your quotas while being on a Free Plan or having Spend Cap enabled, you will get a notification to your billing email address and put under a grace period. For more details, refer to our Fair Use Policy.