Chapter 17. Data Reflection Pattern

The Data Reflection pattern is a pattern that keeps web application content in sync with the database and with the file it is requesting. This pattern can be used in a number of ways. In our sample, it will be used as a way to keep a user’s email data current by allowing the application to receive new emails from other users. This means that if a user sends email to another user, the receiving user will get this new email whenever the data happens to be reflected in the back end of the application. This reflection will be based on a delay or time interval that we set in the code. Or, the functionality could also be extended into a user preference, which would allow a user to choose how long a delay he has ...

Get Ajax for Web Application Developers 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.