Today is June 28, 2007 and in class we went over design patterns. There are so many Java patterns. Check out this site.
The singleton is the most popular patterns and it is a creational pattern. This site shows patterns in UML. It seemed what was covered in class today but describes more patterns. I also found this also.
http://www.javaworld.com/javaworld
/jw-02-2002/jw-0222-designpatterns.html
As to the AJAX group project. I found this free microsoft software named Fiddler at this site. This is an HTTP debugging proxy program.
http://www.fiddlertool.com/fiddler/
Here is a Fiddler Power Toy:
http://msdn2.microsoft.com/en-us/library/bb250446.aspx
So I downloaded and installed Fiddler to a computer. I went to an AJAX site run by Google named www.pageflake.com and here are some of the results of the log file.
ESTIMATED WORLDWIDE PERFORMANCE
————–
The following are VERY rough estimates of download times when hitting servers based in WA, USA.
US West Coast (Modem – 6KB/sec)
—————
Round trip cost: 23.10s
Elapsed Time: 173.10s
Japan / Northern Europe (Modem)
—————
Round trip cost: 34.65s
Elapsed Time: 184.65s
China (Modem)
—————
Round trip cost: 103.95s
Elapsed Time: 253.95s
US West Coast (DSL – 30KB/sec)
—————
Round trip cost: 23.10s
Elapsed Time: 53.10s
Japan / Northern Europe (DSL)
—————
Round trip cost: 34.65s
Elapsed Time: 64.65s
China (DSL)
—————
Round trip cost: 103.95s
Elapsed Time: 133.95s
Request Count: 231
Bytes Sent: 109,296
Bytes Received: 796,108
ACTUAL PERFORMANCE
————–
Requests started at: 18:28:02:1028
Responses completed at: 18:31:38:7043
Total Sequence time: 00:03:36.6014576
RESPONSE CODES
————–
HTTP/302: 6
HTTP/301: 1
HTTP/200: 224
RESPONSE BYTES (by Content-Type)
————–
image/jpeg: 112,102
text/plain: 271
application/x-javascript: 138,821
text/html: 27,076
image/png: 67,368
~headers: 87,786
image/x-icon: 8,004
application/x-shockwave-flash: 56,262
text/css: 20,117
text/javascript: 76,544
text/xml: 21,457
image/vnd.wap.wbmp: 10
application/json: 79,092
image/gif: 101,198
As you can see there are 231 processes going on to download the page.
Only process after loading is a rss xml feed going to get updated information periodically. It seems the back button on the browser reloads but not like the static sit. I went to www.comcast.net for the next experiment.
ESTIMATED WORLDWIDE PERFORMANCE
————–
The following are VERY rough estimates of download times when hitting servers based in WA, USA.
US West Coast (Modem – 6KB/sec)
—————
Round trip cost: 6.30s
Elapsed Time: 39.30s
Japan / Northern Europe (Modem)
—————
Round trip cost: 9.45s
Elapsed Time: 42.45s
China (Modem)
—————
Round trip cost: 28.35s
Elapsed Time: 61.35s
US West Coast (DSL – 30KB/sec)
—————
Round trip cost: 6.30s
Elapsed Time: 12.30s
Japan / Northern Europe (DSL)
—————
Round trip cost: 9.45s
Elapsed Time: 15.45s
China (DSL)
—————
Round trip cost: 28.35s
Elapsed Time: 34.35s
Request Count: 63
Bytes Sent: 36,689
Bytes Received: 163,166
ACTUAL PERFORMANCE
————–
Requests started at: 20:55:48:1716
Responses completed at: 20:57:06:0035
Total Sequence time: 00:01:17.8319168
RESPONSE CODES
————–
HTTP/404: 1
HTTP/304: 44
HTTP/302: 1
HTTP/200: 17
RESPONSE BYTES (by Content-Type)
————–
text/plain: 271
text/html: 86,636
image/gif: 6,282
image/jpeg: 27,321
~headers: 12,165
application/x-javascript: 2,948
application/x-shockwave-flash: 27,543
When the rss is activated on pageflake and extra 5k is used and one process. when the page reloads. When reloading comcast it uses 30 more processes than originally.
I wonder what patterns could be found from analyzing worldwide web usage?
Comment by Josh — July 16, 2007 @ 7:45 pm