DEV Community

H33.ai
H33.ai

Posted on • Originally published at chat101.ai

We Built an AI Chat Widget With a Rust Gateway Sidecar

The Node.js Bottleneck

Our chat platform routes thousands of concurrent WebSocket connections. Node.js handles this fine — until you need sub-millisecond routing decisions for which messages go to AI vs. human agents.

The Rust Sidecar Pattern

Instead of rewriting the entire backend in Rust, we added a Rust gateway sidecar: message routing in <1ms, per-tenant rate limiting (no Redis RTT), WebSocket multiplexing, circuit breaker health checks.

Chat101 lets you upload docs, FAQs, or paste URLs. The AI trains on your content and answers tier-1 questions automatically. When it cannot answer, it routes to a human agent.

Do not rewrite everything. Sidecar the bottleneck.

Chat101 — AI live chat for SaaS. 2-minute setup.


Part of the Z101 platform. Secured by H33-74.

Top comments (0)