{"product_id":"building-real-time-applications-with-cloudflare-cai-evans-9798275220599","title":"Building Real-Time Applications with Cloudflare Workers: Chat Apps, Multiplayer Games, and AI Agents Using Durable Objects and Websockets","description":"\u003cp\u003e\u003cb\u003eBuild real time chat apps, multiplayer games, and AI agents on Cloudflare Workers with confidence from first WebSocket to production launch.\u003c\/b\u003e\u003c\/p\u003e\u003cp\u003eMany 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.\u003c\/p\u003e\u003cp\u003e\u003ci\u003eBuilding Real Time Applications with Cloudflare Workers\u003c\/i\u003e 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.\u003c\/p\u003e\u003cul\u003e\n\u003cli\u003eUnderstand the Workers runtime, CPU budgets, and event loop behavior for real time workloads\u003c\/li\u003e\n\u003cli\u003eUse Durable Objects as stateful building blocks with strong consistency per room, match, or tenant\u003c\/li\u003e\n\u003cli\u003eDesign WebSocket flows on Workers and Durable Objects, including hibernation and connection lifecycle\u003c\/li\u003e\n\u003cli\u003eModel data across Durable Objects storage, D1, KV, R2, Queues, and Vectorize for chat, games, and agents\u003c\/li\u003e\n\u003cli\u003eBuild a production grade chat backend with presence, typing indicators, read receipts, search, and moderation\u003c\/li\u003e\n\u003cli\u003eImplement multiplayer game backends with one object per match, simulation loops, matchmaking, replays, and leaderboards\u003c\/li\u003e\n\u003cli\u003eCreate AI agents with Workers AI and Vectorize, including prompt design, tool calling, long term memory, and real time streaming UX\u003c\/li\u003e\n\u003cli\u003eAdd observability with logging, metrics, traces, testing strategies, staging, replay, and incident debugging\u003c\/li\u003e\n\u003cli\u003eApply performance tuning and scaling patterns, rate limiting, abuse controls, and multi tenant isolation\u003c\/li\u003e\n\u003cli\u003eWork through end to end projects for AI assisted chat, a small multiplayer game, and a team AI workspace\u003c\/li\u003e\n\u003c\/ul\u003e\u003cp\u003eThis 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.\u003c\/p\u003e\u003cp\u003e\u003cb\u003eGrab your copy today and start shipping real time Cloudflare applications that hold up in production.\u003c\/b\u003e\u003c\/p\u003e\u003cbr\u003e\u003cbr\u003e\u003cb\u003eAuthor:\u003c\/b\u003e Cai Evans\u003cbr\u003e\u003cb\u003eISBN-13:\u003c\/b\u003e 9798275220599\u003cbr\u003e\u003cb\u003ePublisher:\u003c\/b\u003e Independently Published\u003cbr\u003e\u003cb\u003eLanguage:\u003c\/b\u003e English\u003cbr\u003e\u003cb\u003ePublished:\u003c\/b\u003e 11\/19\/2025\u003cbr\u003e\u003cb\u003ePages:\u003c\/b\u003e 340\u003cbr\u003e\u003cb\u003eFormat:\u003c\/b\u003e Paperback\u003cbr\u003e\u003cb\u003eWeight:\u003c\/b\u003e 1.30lbs\u003cbr\u003e\u003cb\u003eSize:\u003c\/b\u003e 10.00h x 7.00w x 0.71d","brand":"Cai Evans","offers":[{"title":"Paperback","offer_id":47965554639103,"sku":"9798275220599","price":39.99,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0662\/2982\/9887\/files\/img_890d704f-844e-449d-a955-602d792fa229.jpg?v=1767281333","url":"https:\/\/www.whiterainbookhouse.com\/products\/building-real-time-applications-with-cloudflare-cai-evans-9798275220599","provider":"WR Book House","version":"1.0","type":"link"}