Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/docs/realtime/realtimekit/legal/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Legal
description: Privacy policy, terms of service, and third-party licenses for RealtimeKit.
hideChildren: true
sidebar:
order: 22
order: 23
---

- [Privacy Policy](https://www.cloudflare.com/application/privacypolicy/)
Expand Down
45 changes: 45 additions & 0 deletions src/content/docs/realtime/realtimekit/limits.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
title: Limits
description: Review RealtimeKit API and SDK limits.
pcx_content_type: reference
sidebar:
order: 22
products:
- realtime
---

RealtimeKit applies limits to API requests and SDK operations. Use these values when designing your application.

## API rate limits

RealtimeKit API requests count toward the global Cloudflare API limit, which
applies across all `api.cloudflare.com` API requests. Recording APIs are
subject to a separate limit.
Comment thread
swapnilmadavi marked this conversation as resolved.

| API | Limit |
| -------------------- | ------------------------------- |
| All RealtimeKit APIs | 3,500 requests per five minutes |
| Recording APIs | 1,000 requests per 50 seconds |

## SDK rate limits

Each participant has a separate limit for SDK operations during an active session.
Limits are not shared across participants or applied to your app as a whole. For
example, in a two-participant meeting, each participant can send up to 180 text
messages per minute.

| Operation | Limit |
| -------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- |
| Write to a [Collaborative Store](/realtime/realtimekit/collaborative-stores/) (`set()`, `update()`, `delete()`, `bulkSet()`, `bulkDelete()`) | 5 invocations per second |
| Broadcast a message (`broadcastMessage()`) | 5 invocations per second |
| Send a text message (`sendTextMessage()`) | 180 invocations per minute |
| Send a message (`sendMessage()`) | 180 invocations per minute |
| Send an image (`sendImageMessage()`) | 20 invocations per minute |
| Send a file (`sendFileMessage()`) | 20 invocations per minute |
| Fetch connected meetings (`getConnectedMeetings()`) | 60 invocations per minute |
| Fetch meeting participants (`getAllJoinedPeers()`) | 10 invocations per minute |
| Update participant permissions (`updatePermissions()`) | 1,000 invocations per minute |

## Data retention

For the retention periods for recordings, chat, transcripts, analytics, and webhook logs, refer to [Data retention](/realtime/realtimekit/data-retention/).
Loading