Saturday, April 28, 2007

Status Report for 04/04/2007 -- 04/25/2007

Progress

Detail design for Atom Feed for CIMA Web 2.0

1. Method I

Basic idea:

  • On the server side:

(1) A program keeps running to get Parcel from CIMA Service every several seconds;

(2) Every time the program get Parcel it will call XML Parser to wrap the data into format of item in the Atom Feed;

(3) Write the new-come item to the Atom Feed, and delete the oldest one at the same time;

(4) Once there is any feed request, it will read the Atom feed (file)

  • On the client side:

(1) User sends feed request to the server;

(2) Show feed content to the user

2. Method II

Basic idea:

  • On the server side:

(1) Once there is any feed request, a serverlet will be started to listen to the Parcel from CIMA service;

(2) If no data comes, return a message to the user; otherwise, get Parcel and call XML Parser. This step keeps doing this way until it gets enough Parcels based on users requirements(For example, user wants to watch the latest 10 data each time) and to wrap the them into format of item in the Atom Feed

(3) Write these items to the Atom Feed;

(4) Once there is any feed request, it will read the Atom feed (file)

  • On the client side:

(1) User sends feed request to the server;

(2) Show feed content to the user

3. Comparison
(1) Method I is simple and it can update information at the same rate they receive information, but it needs to run the program all the time even if no feed request comes;

(2) Method II saves resource and it gets the data just upon the user request, but it is a little bit complicated and the user may need to wait for some time for server get enough data

Discussion

1. Comparison of two implementations

2. Request frequency settings in Sage

Future work

1. The issues described in Discussion section

No comments: