基礎架構

WebSocket 即時系統實作

從連線生命週期、訊息設計到多節點擴展,完成聊天、協作與 AI Agent 即時互動系統。

學完能做到

  • WebSocket Protocol 與 HTTP 關係
  • Client、Server 與 Message Design
  • Connection Lifecycle、Heartbeat 與 Keepalive
  • Authentication、Security 與 Rate Limiting

實作專案

  • 即時聊天室
  • 多人協作功能
  • AI Agent 即時互動介面

適合對象

  • 已有 Web 或後端基礎的人
  • 想建立即時系統的開發者

Curriculum

課程大綱

01

核心元件

01

Protocol Deep Dive

02

WebSocket And HTTP

03

First WebSocket Server

04

WebSocket Client

05

Message Design

06

Connection Lifecycle

07

Heartbeat and Keepalive

08

Error Handling and Resilience

09

Authentication and Security

02

系統整合

01

Scaling WebSocket Servers

02

Load Balancing

03

Pub and sub integration

04

Multi node websocket architecture

05

Message Queue Integration

06

Rooms and Channels

07

Presence System

08

Rate Limiting

09

Binary Data Streaming

03

可靠性與實務應用

01

WebSocket and GraphQL

02

Build Real time chat system

03

Collaborative Editing

04

Websocket for Ai agents

05

Observability and Debugging

06

Production Deployment

07

What is WebSocket