mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
Adds internal cross-links to docs guides ## Testing - Prettier passes on the changed lines. - Docs build passes (`pnpm build --filter=docs`). - Docs link e2e run locally against the production build for every changed page across this PR. --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
100 lines
4.4 KiB
Plaintext
100 lines
4.4 KiB
Plaintext
---
|
|
id: 'manage-usage-realtime-messages'
|
|
title: 'Manage Realtime Messages usage'
|
|
---
|
|
|
|
## What you are charged for
|
|
|
|
You are charged for the number of messages going through [Supabase Realtime](/docs/guides/realtime/concepts) throughout the billing cycle. Includes database changes, Broadcast and Presence.
|
|
|
|
**Database changes**
|
|
Each database change counts as one message per client that listens to the event. For example, if a database change occurs and five clients listen to that database event, it counts as five messages.
|
|
|
|
**Broadcast**
|
|
Each broadcast message counts as one message sent plus one message per subscribed client that receives it. For example, if you broadcast a message and four clients listen to it, it counts as five messages: one sent and four received. The sender isn't counted as a recipient unless it enabled [self-send](/docs/guides/realtime/broadcast#self-send-messages).
|
|
|
|
Every subscribed client counts as a recipient, including server-side clients such as [Edge Function](/docs/guides/functions) workers. If a server subscribes to a channel only to send messages, it's billed for receiving every message on that channel. To send from a server, use the [Broadcast REST API](/docs/guides/realtime/broadcast#broadcast-using-the-rest-api) instead.
|
|
|
|
## How charges are calculated
|
|
|
|
Realtime Messages are billed using Package pricing, with each package representing 1 million messages. If your usage falls between two packages, you are billed for the next whole package.
|
|
|
|
### Example
|
|
|
|
For simplicity, assume a package size of 1,000,000 and a charge of <Price price="2.50" /> per package without quota.
|
|
|
|
| Messages | Packages Billed | Costs |
|
|
| --------- | --------------- | ---------------------- |
|
|
| 999,999 | 1 | <Price price="2.50" /> |
|
|
| 1,000,000 | 1 | <Price price="2.50" /> |
|
|
| 1,000,001 | 2 | <Price price="5.00" /> |
|
|
| 1,500,000 | 2 | <Price price="5.00" /> |
|
|
|
|
### Usage on your invoice
|
|
|
|
Usage is shown as "Realtime Messages" on your invoice.
|
|
|
|
## Pricing
|
|
|
|
<$Partial path="billing/pricing/pricing_realtime_messages.mdx" />
|
|
|
|
## Billing examples
|
|
|
|
### Within quota
|
|
|
|
The organization's Realtime messages are within the quota, so no charges apply.
|
|
|
|
| Line Item | Units | Costs |
|
|
| ------------------- | -------------------- | ------------------------ |
|
|
| Pro Plan | 1 | <Price price="25" /> |
|
|
| Compute Hours Small | 730 hours | <Price price="15" /> |
|
|
| Realtime Messages | 1.8 million messages | <Price price="0" /> |
|
|
| **Subtotal** | | **<Price price="40" />** |
|
|
| Compute Credits | | -<Price price="10" /> |
|
|
| **Total** | | **<Price price="30" />** |
|
|
|
|
### Exceeding quota
|
|
|
|
The organization's Realtime messages exceed the quota by 3.5 million, incurring charges for this additional usage.
|
|
|
|
| Line Item | Units | Costs |
|
|
| ------------------- | -------------------- | ------------------------ |
|
|
| Pro Plan | 1 | <Price price="25" /> |
|
|
| Compute Hours Small | 730 hours | <Price price="15" /> |
|
|
| Realtime Messages | 8.5 million messages | <Price price="10" /> |
|
|
| **Subtotal** | | **<Price price="50" />** |
|
|
| Compute Credits | | -<Price price="10" /> |
|
|
| **Total** | | **<Price price="40" />** |
|
|
|
|
## View usage
|
|
|
|
You can view Realtime Messages usage on the [organization's usage page](/dashboard/org/_/usage). 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.
|
|
|
|
<Image
|
|
alt="Usage page navigation bar"
|
|
src={{
|
|
light: '/docs/img/guides/platform/usage-navbar--light.png',
|
|
dark: '/docs/img/guides/platform/usage-navbar--dark.png',
|
|
}}
|
|
|
|
width={1546}
|
|
height={208}
|
|
/>
|
|
|
|
In the Realtime Messages section, you can see the usage for the selected time period.
|
|
|
|
<Image
|
|
alt="Usage page Realtime Messages section"
|
|
src={{
|
|
light: '/docs/img/guides/platform/usage-realtime-messages--light.png',
|
|
dark: '/docs/img/guides/platform/usage-realtime-messages--dark.png',
|
|
}}
|
|
|
|
width={2036}
|
|
height={760}
|
|
/>
|
|
|
|
## Exceeding Quotas
|
|
|
|
<$Partial path="billing/exceeding_usage_quotas.mdx" />
|