BUILDING REAL-TIME APPLICATIONS WITH CLOUDFLARE WORKERS: CHAT APPS, MULTIPLAYER GAMES, AND AI AGENTS USING DURABLE OBJECTS AND WEBSOCKETS - Softcover

EVANS, CAI

 
9798275220599: BUILDING REAL-TIME APPLICATIONS WITH CLOUDFLARE WORKERS: CHAT APPS, MULTIPLAYER GAMES, AND AI AGENTS USING DURABLE OBJECTS AND WEBSOCKETS

Inhaltsangabe

Build real time chat apps, multiplayer games, and AI agents on Cloudflare Workers with confidence from first WebSocket to production launch.

Many developers like the idea of real time systems at the edge, but run into platform limits, state management problems, and fragile designs once real users arrive. It is easy to get a demo working and much harder to ship chat, games, and AI features that stay reliable under load.

Building Real Time Applications with Cloudflare Workers gives you a complete, honest path from the Workers execution model through Durable Objects, storage, and WebSockets into full architectures for production systems. You learn how to think about state, consistency, performance, and security in a way that fits Cloudflare instead of fighting it.

  • Understand the Workers runtime, CPU budgets, and event loop behavior for real time workloads
  • Use Durable Objects as stateful building blocks with strong consistency per room, match, or tenant
  • Design WebSocket flows on Workers and Durable Objects, including hibernation and connection lifecycle
  • Model data across Durable Objects storage, D1, KV, R2, Queues, and Vectorize for chat, games, and agents
  • Build a production grade chat backend with presence, typing indicators, read receipts, search, and moderation
  • Implement multiplayer game backends with one object per match, simulation loops, matchmaking, replays, and leaderboards
  • Create AI agents with Workers AI and Vectorize, including prompt design, tool calling, long term memory, and real time streaming UX
  • Add observability with logging, metrics, traces, testing strategies, staging, replay, and incident debugging
  • Apply performance tuning and scaling patterns, rate limiting, abuse controls, and multi tenant isolation
  • Work through end to end projects for AI assisted chat, a small multiplayer game, and a team AI workspace

This is a code heavy guide with fully worked JavaScript and SQL examples for Workers, Durable Objects, WebSockets, D1, R2, Queues, Vectorize, and Workers AI so you can adapt real patterns instead of guessing from theory.

Grab your copy today and start shipping real time Cloudflare applications that hold up in production.

Die Inhaltsangabe kann sich auf eine andere Ausgabe dieses Titels beziehen.