Payload and Rate Limits
The payload size and message rate limits a Sync Kit Connected Lens on SPECS must stay within when it syncs data.
- Snapchat: not supported
- SPECS: fully supported
- Camera Kit Web: not supported
- Camera Kit Mobile: not supported
- SnapchatNot supported
- SPECSFully supported
- Camera Kit WebNot supported
- Camera Kit MobileNot supported
A Connected Lens built with Sync Kit must stay within the payload and message rate limits when it syncs data, in Lens Studio and on SPECS. When a Lens exceeds them, the Lens Studio Logger shows an error, and the session may disconnect.
Payload limit for one message
The maximum payload limit for a message is 100 KB in both Lens Studio and on SPECS.
Message rate limit
The rate limit is 350 messages per 5-second window, in Lens Studio and on SPECS. Each
networked event counts as one message. To send
storage property updates less often, set
sendsPerSecondLimit on the property, or Sends Per Second Limit on a
SyncTransform.
Related
- Networked Events: one-time messages, one message each.
- Storage Properties: synced state and its send rate.
- Sync Transform: the send rate of synced transforms.