Collaboration Architecture
What Is a CRDT?
Architecture Overview
User Browser A User Browser B
| |
| wss:// (TLS) | wss:// (TLS)
v v
+---------------------------+
| Y-WebSocket Server |
| - Receives CRDT updates |
| - Broadcasts to peers |
| - Persists to Redis |
+---------------------------+
|
| HTTP POST (changes only)
v
+---------------------------+
| Eval-Update Lambda |
| - Writes DB delta |
| - Stores S3 snapshot |
| (encrypted, SSE-C) |
+---------------------------+
|
PostgreSQL + S3Component Responsibilities
Component
Role
Privacy Design of the Collaboration Layer
Transport Security
Identity Within the Collaboration Layer
Application-Level Encryption for Snapshots
Lambda Data Isolation
What Is Persisted and When
Data
Storage
Timing
Multi-User Scenarios
Two users edit the same section simultaneously
A user disconnects and reconnects
A workspace with 50 concurrent editors
Was this helpful?