Академический Документы
Профессиональный Документы
Культура Документы
Scalability
Scalability is the capability to increase resources to yield a linear (ideally) increase in service capacity. The key
characteristic of a scalable application is that additional load only requires additional resources rather than
extensive modification of the application itself.
Although raw performance makes a difference in determining the number of users that an application can support,
scalability and performance are two separate entities. In fact, performance efforts can sometimes be opposed to
scalability efforts.
1.
2. Gazillions of clients
3. Web server takes a request and gives something back to the client or 404
error not found
4. Web Client lets the user request something on the server and shows the user
the result of the request
5. Clients and Servers know HTML and HTTP
a. Talk using HTTP(mostly)
b. Client understands HTML
6. HTTP runs on top of TCP/IP
a.
b.
c.
d.
e.
Tcp : makes sure a file sent from one end is received as a complete file
Ip : routing of packets
http : request/response communication b/w client and server
request : url, method(get,post,etc),form parameters(required by method on server
side)
response : status code,content-type,content
7. HTTP Response
a. HTML browser uses header info to process the HTML page
b. HTTP adds this header info in response
12.Parts of URl
a.
13.TCP Port
a. 16 bit number(0-65535): FTP 21, Telnet 23 , SMTP 25 , Pop3 110 , HTTPS 443 , HTTP
b.
c.
d.
e.
80 , Time 37
Logical connection to Http s/w running on machine
0-1023 are reserved for well known services
Without port numbers a server wont know which app a client wanted to connect to
So if a web browser landed at POP3 ,server does not know how to parse HTML and
even if it did ,it cannot send an HTML response
a. You cant have carriage return inside a String literal,not a real one
b. HTML almost always has double quote marks, that tells java its the
end of String literal, which marks the end of String literal, hence it has
to be escaped as well
19.Thus the solution Java inside HTML
a. Isnt that a problem for HTML designers : no coz if they according to
latest JSP spec and by following best practices,page designers would
be putting very little Java, they have to put labels which call java,they
have to learn JSP syntax