Upload
le-kien-truc
View
141
Download
2
Embed Size (px)
Citation preview
Large scale web
socket systemTrucLK- [email protected]
- Scalability on public cloud infrastructure
- Low latency command control
- Security.
System Purpose
Architecture
Amazon EC2
IP
Camera
IP
Camera
IP
Camera
Server
Server
Server
Video Stream
Web Socket Connection
Web Socket Connection
Web Socket Connection
Control command
TLS
Auth
entication
Scalable Architecture
Amazon EC2
IP
Camera
IP
Camera
App worker
Video Stream
Control command
DNS Load balancing App worker
App workerD
ata
ba
se
Proxy
worker
Proxy
workerWeb Socket
Web Socket
DNS query
- First load balancing.
- Resolve concurrent TCP connections
problem.
- Software:
DNS Load balancing
Proxy worker
- Client authentication with TLS.
- Sharding client with app workers.
- Software:
App worker
- Any web applications: Ruby, Java, Python,
PHP …
- Stateless with central session database.
Database
- Does not need to be distributed
- Should be support auto scaling
- Suggestion: NoSQL instead of SQL
Estimation
- Complexity : Average
- Duration : 2 months