O'Reilly logo

Comet and Reverse Ajax: The Next-Generation Ajax 2.0 by Dave Crane, Phil McCarthy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Combining Comet with CRUD

Comet's event-driven architecture is new and exciting. The majority of web applications, however, are centered around a CRUD (create, read, update, and delete) architecture for managing entities.

Now that we're all fired up to use Comet, how do we integrate it into a CRUD-style application. We've already referred to CRUD in Chapter 3, in the naive implementation of the Magnetic Poetry application. Let's briefly review the typical features of a CRUD-based web application:

  • Domain data is stored in a relational database

  • In the business logic tier of the application, this data is represented by an object model, describing the domain in terms of entities with properties and behavior.

  • Often, an "object-relational mapping" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required