Performance & limits
DNotifier enforces plan limits at authentication and at runtime. Understanding caps, chunking, and transport characteristics helps you design apps that stay within quota and feel responsive.
Plan limits from auth
After connect(), read limits with getPlanLimits():
messagesHardLimit
Maximum messages per billing period
messageSizeLimit
Max single-message size in bytes (also chunk size)
maxAIRequestsPerMonth
AI call quota
maxAIWordsPerMonth
AI word quota
knowledgeBaseMaxWords
Total indexed words allowed
aiEnabled
Whether AI APIs are available
maxUsers
Concurrent or registered user cap (per plan)
maxRowsPerUser
Per-user row limits where applicable
await notifier.connect();
const limits = notifier.getPlanLimits();
console.log(limits.messageSizeLimit, limits.aiEnabled);await notifier.connect();
final limits = notifier.getPlanLimits();
print('${limits?.messageSizeLimit}, AI: ${limits?.aiEnabled}');Also available as instance properties after connect: messageSizeLimit, aiEnabled.
→ Plan limits & quotas · Pricing & plans
Message size and chunking
Payloads larger than messageSizeLimit are split into chunks on send and reassembled on receive. This is transparent for most apps if you use send() with structured data.
Prefer structured send() over raw binary when possible
SDK handles framing and metadata
Handle reassembled messages only in onMessage
Partial chunks are internal
Test with files near and above the limit
Verify UI latency and memory
Transport performance characteristics
WebSocket (ws)
Low — persistent connection
High for many small messages
Chat, live sync, push
HTTP (http)
Per-request overhead
Good for bursty AI/RAG calls
sendAI, search, workflows
WebSocket tips
One connection per user session — avoid opening duplicate sockets
Batch UI updates from
onMessage(e.g. debounce React state) under heavy trafficReconnect with exponential backoff — do not hammer
connect()in a tight loop
HTTP tips
Reuse one authenticated
DNotifierinstance —connect()is lightweight for HTTPParallel
sendAIcalls count against monthly quotas — queue or rate-limit on your sideLarge document indexing: batch
addDocumentwith backoff if you hit word limits
AI and RAG quotas
sendAI
AI requests and words
addDocument / updateDocument
Knowledge-base word count
search
Typically lighter; still subject to plan rules
runWorkflow with ctx.sendAI
Each AI step counts
Check aiEnabled before exposing AI features in your UI.
→ AI overview
Connection and memory
Mobile background
Disconnect when app is backgrounded to save battery
Many concurrent users
Scale horizontally — each user is one connection on your client fleet
Server workers
One DNotifier per worker process; scale workers, not sockets per worker
Binary payloads
Release Blob / buffer references after processing to avoid memory growth
Workflow performance
Sequential agents
Total time = sum of agent steps
observability: true
Small HTTP overhead per recorded step
ctx.search + ctx.sendAI chains
Network-bound; minimize round trips where logic allows
Design workflows with parallelizable work at the application level when latency matters.
Monitoring recommendations
Connect success rate
Your app logs
Time to onConnected
Client-side timing
Messages sent / received
Your analytics
AI usage
DNotifier dashboard + getPlanLimits()
Workflow duration
Workflow dashboard when observability is on
When you hit a limit
Send fails or truncates
messageSizeLimit
Compress media; use smaller payloads
sendAI error
Monthly AI cap or aiEnabled: false
Upgrade plan or throttle usage
addDocument rejected
Knowledge-base word cap
Prune old documents
→ Troubleshooting
Related guides
Last updated