-
Notifications
You must be signed in to change notification settings - Fork 11.6k
fix: add limits and quotas for realtimekit #27487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ishita1805
wants to merge
6
commits into
production
Choose a base branch
from
ikabra/rtk-limits-and-quotas
base: production
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
b6807c6
fix: add limits and quotas for realtimekit
ishita1805 58179d3
chore: resolve merge conflicts
ishita1805 73b3711
Update src/content/docs/realtime/realtimekit/rate-limits.mdx
ishita1805 50d1734
Update src/content/docs/realtime/realtimekit/rate-limits.mdx
ishita1805 4066197
Update src/content/docs/realtime/realtimekit/rate-limits.mdx
ishita1805 785bccf
fix: rename socket peers to meeting participants
ishita1805 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,89 @@ | ||
| --- | ||
| pcx_content_type: navigation | ||
| title: Limits and Quotas | ||
| sidebar: | ||
| order: 9 | ||
| --- | ||
|
|
||
| import RTKPill from "~/components/realtimekit/RTKPill/RTKPill.astro"; | ||
|
|
||
| A guide to limits and quotas for RealtimeKit. | ||
|
|
||
| :::note | ||
| These limits are subject to change. Please subscribe to our [notice board](/realtime/realtimekit/release-notes/notice-board/) page for updates. | ||
| ::: | ||
|
|
||
| ## Limits | ||
|
|
||
| Cloudflare RealtimeKit applies concurrency and rate limits to certain services. These limits help maintain platform stability and protect against abuse, not to restrict normal usage. If you expect to exceed these limits or are limited by current performance, please contact Cloudflare Support. | ||
| :::note | ||
| There isn't a limit or performance metric we can't improve by an order of magnitude. If you expect to exceed these limits or are limited by current performance, please contact Cloudflare Support. | ||
| ::: | ||
|
|
||
| ### Concurrency Limits | ||
|
|
||
| Many RealtimeKit Cloud features rely on persistent, long-lived connections such as WebRTC and WebSockets. | ||
|
|
||
| To ensure platform stability and fair usage, these connections are subject to concurrency limits, which define the maximum number of simultaneous connections supported at any time. | ||
|
|
||
| #### API Concurrency Limits | ||
|
|
||
| | Metric | Observed in Production | Production Limits | | ||
| | --------------------------------------- | ---------------------- | ----------------- | | ||
| | Max Concurrent Participants per Session | | | | ||
| | Max Concurrent Sessions | | | | ||
| | Max Concurrent Recordings | | | | ||
| | Max Concurrent Livestreams | | | | ||
|
|
||
| #### SDK Concurrency Limits | ||
|
|
||
| | Metric | Observed in Production | Production Limits | | ||
| | ------------------- | -------------------------- | -------------------------- | | ||
| | SDK Initialisation | Once per user | 1 invocation per 3 seconds | | ||
| | Join a Meeting | Once per user | 1 invocation per 3 seconds | | ||
| | Toggle Media | 1 invocation per 3 seconds | 1 invocation per 3 seconds | | ||
| | Join or Leave Stage | 1 invocation per 5 seconds | 1 invocation per 5 seconds | | ||
|
|
||
| ### Rate Limits | ||
|
|
||
| Rate limits control the frequency at which requests can be made to RealtimeKit APIs and SDK methods. | ||
|
|
||
| These limits are designed to prevent abuse and ensure consistent performance for all users. Rate limits are typically measured in requests per second (RPS) or requests per minute (RPM). | ||
|
|
||
| #### API Rate Limits | ||
|
|
||
| | Metric | Production Limits | | ||
| | -------------------- | ---------------------------- | | ||
| | All RealtimeKit APIs | 250 requests per 10 seconds | | ||
| | Recordings APIs | 1000 requests per 60 seconds | | ||
| | App Creation | | | ||
| | Preset Creation | | | ||
| | Webhook Creation | | | ||
|
|
||
| #### SDK Rate Limits | ||
|
|
||
| | Metric | Production Limits | | ||
| | ------------------------- | --------------------------- | | ||
| | RealtimeKit Stores | 5 invocations per second | | ||
ishita1805 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| | Send Text Messages | 180 invocations per minute | | ||
| | Send Files/Images | 20 invocations per minute | | ||
| | Fetch Connected Meetings | 60 invocations per minute | | ||
| | Update Participant Preset | 10 invocations per minute | | ||
| | Fetch All Socket Peers | 1000 invocations per minute | | ||
ishita1805 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ### Storage & Retention Limits | ||
|
|
||
| | Metric | Production Limits | Additional Information | | ||
| | ----------------------------- | ------------------ | -------------------------------------------------------------------------------------------------------------------------- | | ||
| | Recordings Storage | Stored for 7 days | [Configure custom storage](/realtime/realtimekit/recording-guide/custom-cloud-storage/) for longer retention | | ||
| | Chat Storage | Stored for 7 days | 90 days with the `persit_chat` [configuration enabled](/api/resources/realtime_kit/subresources/meetings/methods/create/). | | ||
ishita1805 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| | Transcription/Summary Storage | Stored for 7 days | - | | ||
| | Callstats & Logs | Stored for 30 days | - | | ||
|
|
||
| ## Free Quotas | ||
|
|
||
| Most RealtimeKit Cloud features are metered, meaning you’re charged based on how much of each resource you use. | ||
|
|
||
| We are currently **in the process of implementing quotas** for RealtimeKit. Quotas are enforced are shared across all of a user’s projects. Creating additional projects does not increase the available quota. | ||
|
|
||
| For the latest quotas and pricing details, refer to the current [pricing](/realtime/realtimekit/pricing/) page. | ||
ishita1805 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.