OpenClaw Gateway Internal (1)
AI 前线
Gateway 6-layer stack 00:54
1. Runtime, 2. Communication, 3. Security, 4. Deployment, 5. Memory, 6. Application
L1. Runtime: nodejs 02:03
1. Non-blocking I/O: queue
2. Event-driven: event in the queue
3. Single thread main loop: promise-callback
4. Async worker thread pool.
L2. Communication: ws + http 03:44
1. ws + wss, http + https, http/1 + http/2
2. Not yet supported: MQ, DSS
L3. Security 06:36
1. Inbound authentication 鉴权,
2. Outbound authorization 授权,
3. Operation policy / rule 规则.
L4. Deployment 08:15
1. Multi-gateway 用法: 灾备、分流,分工, 08:22
2. Separate from gateway: systemd, web server, mcp server, 09:40
3. Docker, 11:26
4. Distributed system: tailscale for vpn, bonjour for mDNS, 12:02