9
Large scale web socket system TrucLK- [email protected]

Large scale web socket system with AWS and Web socket

Embed Size (px)

Citation preview

Page 1: Large scale web socket system with AWS and Web socket

Large scale web

socket systemTrucLK- [email protected]

Page 2: Large scale web socket system with AWS and Web socket

- Scalability on public cloud infrastructure

- Low latency command control

- Security.

System Purpose

Page 3: Large scale web socket system with AWS and Web socket

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

Page 4: Large scale web socket system with AWS and Web socket

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

Page 5: Large scale web socket system with AWS and Web socket

- First load balancing.

- Resolve concurrent TCP connections

problem.

- Software:

DNS Load balancing

Page 6: Large scale web socket system with AWS and Web socket

Proxy worker

- Client authentication with TLS.

- Sharding client with app workers.

- Software:

Page 7: Large scale web socket system with AWS and Web socket

App worker

- Any web applications: Ruby, Java, Python,

PHP …

- Stateless with central session database.

Page 8: Large scale web socket system with AWS and Web socket

Database

- Does not need to be distributed

- Should be support auto scaling

- Suggestion: NoSQL instead of SQL

Page 9: Large scale web socket system with AWS and Web socket

Estimation

- Complexity : Average

- Duration : 2 months