Chapter 13WebSockets with Durable Objects

If you have prior experience building web applications, a lot of the core building blocks we’ve explored so far, such as databases and caches, will be familiar to you. As you progressed through the book, you learned how to use those building blocks specifically on the Cloudflare platform and in a serverless environment.

Before we dive into the project for this chapter, let’s consider a use case we haven’t yet covered in the book: real-time applications. These are the kinds of applications that feel incredibly responsive and almost alive. For example, a multiplayer game such as Clash of Clans, real-time chat such as Discord, collaborating on a shared document in Google Docs, or drawing out a mind map ...

Get Serverless Apps on Cloudflare now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.