23
Web Platform Performance Analysis Prototype Acceptance Review Team. 4

Web Platform Performance Analysis Prototype Acceptance Review Team. 4

Embed Size (px)

Citation preview

Page 1: Web Platform Performance Analysis Prototype Acceptance Review Team. 4

Web Platform Performance Analysis

Prototype Acceptance Review

Team. 4

Page 2: 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

Page 3: Web Platform Performance Analysis Prototype Acceptance Review Team. 4

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

Page 4: Web Platform Performance Analysis Prototype Acceptance Review Team. 4

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).

Page 5: Web Platform Performance Analysis Prototype Acceptance Review Team. 4

Prototype

Prototype platform

Client(Browser)

Web Server(Apache)

Web Services API

(Amazon)

Script(PHP)

Database(MySQL)

REST/SOAPHTTP

Prototype application : web shopping mall

Page 6: Web Platform Performance Analysis Prototype Acceptance Review Team. 4

Demo

Try to buy a new cell phone from ECE Cell Phone web page…

Page 7: Web Platform Performance Analysis Prototype Acceptance Review Team. 4

Prototype application

PHP

Page 8: Web Platform Performance Analysis Prototype Acceptance Review Team. 4

Prototype elements

Apache web server configuration PHP script

set a cookie for each web browser MySQL query to store data

MySQL Database Tables Data

Page 9: Web Platform Performance Analysis Prototype Acceptance Review Team. 4

MySQL 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 pduct_info; +---------+-------+ | product | price | +---------+-------+ | LG | 400 | | Samsung | 600 || Nokia | 490 | +---------+-------+ 3 rows in set (0.02 sec)

mysql> select * from main_shop;+----------------------------------+--------------+----------+| session | product | quantity |+----------------------------------+--------------+----------+| 64a178a038dd09e3029460b51d2cfad4 | LG | 1 || 2263fc4b8384bacfea3051b17488dc72 | LG | 1 || 6fae68f29c8dd2f87ad9f6b17153de42 | LG | 1 || 6fae68f29c8dd2f87ad9f6b17153de42 | Samsung| 1 |

Page 10: Web Platform Performance Analysis Prototype Acceptance Review Team. 4

Users Table

mysql> select * from users;+--------+-------+----------+----------+-------------------------+----------+------------------------------------+--------+--------------+--------------+|name   | id    | password | resident | email                 | homepage |address                            | zip    | tel          | tel2        |+--------+-------+----------+----------+-------------------------+----------+------------------------------------+--------+--------------+--------------+|yousuf | doha  | fece   | -        | [email protected]  |          |1200 E. River rd. #J-133 Tucson AZ | 85718- | 520-360-6666 | 520-360-6666 |

|thiha  | thiha | 12345    | -        | [email protected] |          |901, N. 1st ave                    | -      | 520-626-8767 | 520-626-8767 |

|yousuf |       | NULL     | -        | [email protected]  | NULL     |somewher                           | 85718- | 520-360-6666 | 520-360-6666|+--------+-------+----------+----------+-------------------------+----------+------------------------------------+--------+--------------+--------------+3rows in set (0.06 sec)

Page 11: Web Platform Performance Analysis Prototype Acceptance Review Team. 4

Test Performed

Communication among each elements Accessing Amazon Web Services API with

REST and SOAP Load testing

Page 12: Web Platform Performance Analysis Prototype Acceptance Review Team. 4

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;

Page 13: Web Platform Performance Analysis Prototype Acceptance Review Team. 4

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).

Page 14: Web Platform Performance Analysis Prototype Acceptance Review Team. 4

Result Obtained

XML responseof REST callto Amazon

Page 15: Web Platform Performance Analysis Prototype Acceptance Review Team. 4

Introduction to OpenLoad™

4 Stages to test :

Page 16: Web Platform Performance Analysis Prototype Acceptance Review Team. 4

Introduction to OpenLoad™

Analysis Page View:

Page 17: Web Platform Performance Analysis Prototype Acceptance Review Team. 4

Load Test Report

Page 18: Web Platform Performance Analysis Prototype Acceptance Review Team. 4

Load Test Results

Session Time

Page 19: Web Platform Performance Analysis Prototype Acceptance Review Team. 4

Load Test Results

Total Requests Total Responses Total Page Views Total Sessions

Page 20: Web Platform Performance Analysis Prototype Acceptance Review Team. 4

Load Test Results

Data Throughput Data Sent Data Received

Page 21: Web Platform Performance Analysis Prototype Acceptance Review Team. 4

Lessons Learned

Need another database that is ACID compliance (e.g. PostgreSQL)

Page 22: Web Platform Performance Analysis Prototype Acceptance Review Team. 4

Next steps

Set up the other OS systems Test different platforms

Page 23: Web Platform Performance Analysis Prototype Acceptance Review Team. 4

Any Questions