Presentation is loading. Please wait.

Presentation is loading. Please wait.

Online Magazine Bryan Ng. Goal of the Project Product Dynamic Content Easy Administration Development Layered Architecture Object Oriented Adaptive to.

Similar presentations


Presentation on theme: "Online Magazine Bryan Ng. Goal of the Project Product Dynamic Content Easy Administration Development Layered Architecture Object Oriented Adaptive to."— Presentation transcript:

1 Online Magazine Bryan Ng

2 Goal of the Project Product Dynamic Content Easy Administration Development Layered Architecture Object Oriented Adaptive to HTML design change Scalable

3 Data Driven Dynamic Content All data stored in the database Relationships between Issue/Section/Article Status (Draft/Approved/Published/Featured)

4 Administration Interface User-based Individual Editors can Add/Edit their own articles Administrators can manage all articles, publish articles to sections/issues or featured.

5 Development Layer Architecture Different Developers can work in different layers. Isolate changes within a layer Object Oriented Model business entities (e.g. articles) Simpler code for developers to understand

6 Developer vs. Designer Look and Feel designed by HTML designer Developers take design to implement Designer may change design (different style, extra field, etc) later on Developers must make sure changes can be easily done

7 Component Based Architecture Objects make sure information is available to every component Code-Behind of ASP.NET separates presentation from logic Avoid spaghetti code User control enables reuse of common modules

8 Data+Admin+Layer+Components

9 Scalability Request from Database on every page Section List Article List Article Details Takes time to establish connection and load data Connection Pooling and Buffer Manager helps But we still want to minimize connection to database

10 Object Caching Take advantage of the fact that: Once an article is published, it seldom changes Data in general stay the same within issue Use caching to keep object in memory Once an object is cached in one component, it is accessible to other components

11 Everything + Caching

12 More Scalability What if the magazine gets VERY popular? Web Farm Deploy Application to different servers Use switch to redirect request to a server But we got a problem….

13 Data Inconsistency If an article is updated. Cached copy has to be invalidated. Simple Picture Database, Administration Interface and Public site are all the same machine Cache can be cleared after data update. What about web farm?

14 Web Farm with Cache Update Notify

15 Remote Cache Invalidation With the use of Web Service Each deployed application has an exposed web service to invalidate the cache List of services stored in configuration file When the database is updated through the administration interface, a remote service call is sent to each application

16 Room for Improvements Things that can be done given more time Advanced Search Static Content Editor Advertisements Things that should be done Lists of Articles for caching Separate administration page for lists Enable cache to be invalidated separately

17 Article Lists Improvement Article table does not contain issue and section information Maintain list of featured articles, articles in sections Whenever list is updated, that cached list is invalidated but the articles themselves are not

18 Conclusion Data-Driven application Development adaptive to change Scalability


Download ppt "Online Magazine Bryan Ng. Goal of the Project Product Dynamic Content Easy Administration Development Layered Architecture Object Oriented Adaptive to."

Similar presentations


Ads by Google