230 likes | 245 Views
Evaluate web platform performance, test prototypes, and access APIs for optimal combinations. Review load testing results and analyze data throughput.
E N D
Web Platform Performance Analysis Prototype Acceptance Review Team. 4
Outline • Introduction:- Nipun • Application Demo:- Seok Kyu • Access to web services API:- Thiha • Load Testing:- Yousuf
Introduction • Background • AOL need to change its web platform to match with the standard industry web platform. • Motivation: • Reduce development and maintenance time and cost • Sponsor: • AOL
Project overview • Overview: • Evaluate different sets of web platform (operating systems, web servers, databases, and web applications). • Test performance of each platform to determine the best combination ( using “OPENDEMAND” software).
Prototype • Prototype platform Prototype application : web shopping mall
Demo Try to buy a new cell phone from ECE Cell Phone web page…
Prototype elements • Apache web server configuration • PHP script • set a cookie for each web browser • MySQL query to store data • MySQL • Database • Tables • Data
MySQL • mysql> select * from pduct_info; • +---------+-------+ • | product | price | • +---------+-------+ • | LG | 400 | • | Samsung | 600 | • | Nokia | 490 | • +---------+-------+ • 3 rows in set (0.02 sec) • mysql> show databases; • +----------+ • | Database | • +----------+ • | mysql | • | test | • | wiz | • +----------+ • 3 rows in set (0.00 sec) • mysql> show tables; • +---------------+ • | Tables_in_wiz | • +---------------+ • | main_shop | • | pduct_info | • | users | • +---------------+ • 4 rows in set (0.00 sec) mysql> select * from main_shop;+----------------------------------+--------------+----------+| session | product | quantity |+----------------------------------+--------------+----------+| 64a178a038dd09e3029460b51d2cfad4 | LG | 1 || 2263fc4b8384bacfea3051b17488dc72 | LG | 1 || 6fae68f29c8dd2f87ad9f6b17153de42 | LG | 1 || 6fae68f29c8dd2f87ad9f6b17153de42 | Samsung| 1 |
Users Table • mysql> select * from users;+--------+-------+----------+----------+-------------------------+----------+------------------------------------+--------+--------------+--------------+|name | id | password | resident | email | homepage |address | zip | tel | tel2 |+--------+-------+----------+----------+-------------------------+----------+------------------------------------+--------+--------------+--------------+|yousuf | doha | fece| - | doha@email.arizona.edu | |1200 E. River rd. #J-133 Tucson AZ | 85718- | 520-360-6666 | 520-360-6666 | • |thiha | thiha | 12345 | - | thiha@email.arizona.edu | |901, N. 1st ave | - | 520-626-8767 | 520-626-8767 | • |yousuf | | NULL | - | doha@email.arizona.edu | NULL |somewher | 85718- | 520-360-6666 | 520-360-6666|+--------+-------+----------+----------+-------------------------+----------+------------------------------------+--------+--------------+--------------+3rows in set (0.06 sec)
Test Performed • Communication among each elements • Accessing Amazon Web Services API with REST and SOAP • Load testing
SOAP Call to Amazon • function doAmazonKeywordSearchEnvelope(token,keyword){ • var S='<?xml version="1.0" encoding="UTF-8"?>\n'; • S+='<SOAP-ENV:Envelope'; • S+=' xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"'; • ……………………. • S+=' <SOAP-ENV:Body>'; • S+=' <namesp1:KeywordSearchRequest xmlns:namesp1="urn:PI/DevCentral/SoapService">'; • S+=' <KeywordSearchRequest xsi:type="namesp1:KeywordRequest">'; • S+=' <keyword >Cell Phones</keyword>'; • S+=' <page >1</page>'; • S+=' <mode >Wireless</mode>'; • S+=' <tag >webservices-20</tag>'; • S+=' <type >lite</type>'; • S+=' <devtag >04KKFRC24Q9CWCZKKN82</devtag>'; ///Amazontoken//// • S+=' <format >xml</format>'; • S+=' <version >1.0</version>'; • S+=' </KeywordSearchRequest>'; • S+=' </namesp1:KeywordSearchRequest>'; • S+=' </SOAP-ENV:Body>'; • S+='</SOAP-ENV:Envelope>'; • return S;
REST example for Amazon Web Services Access • http://webservices.amazon.com/onca/xml?Service=AWSECommerceService • &SubscriptionId=04KKFRC24Q9CWCZKKN82 • &Operation=ItemSearch • &SearchIndex=Wireless • &Keywords=Cell%20Phone • &ResponseGroup=Medium&type=lite • &f=http://www.u.arizona.edu/~thiha/AmaGet03.xsl • Parser from XML to HTML is XSLT (Extensible Stylesheet Language Transformations).
Result Obtained XML response of REST call to Amazon
Introduction to OpenLoad™ • 4 Stages to test :
Introduction to OpenLoad™ • Analysis Page View:
Load Test Results • Session Time
Load Test Results • Total Requests • Total Responses • Total Page Views • Total Sessions
Load Test Results • Data Throughput • Data Sent • Data Received
Lessons Learned • Need another database that is ACID compliance (e.g. PostgreSQL)
Next steps • Set up the other OS systems • Test different platforms