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" ...

Get Comet and Reverse Ajax: The Next-Generation Ajax 2.0 now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.