Tuesday, 10 July 2012

Day2-Section2--servers,cookies,sessions,REST


You would all have come across the terms TCP and UDP,but how does this exactly differ???
UDP is connectionless whereas TCP is not .
TCP is more reliable.The sequence of the data is still maintained and for the main reason
TCP is more heavyweighted.
 Application Server and Web server
What is a SERVER??
                A server is a a computer on which that program runs, that provides a specifickind of service to client software running on the same computer or other computers on a network.
Two Kinds are the application and the web server.
       Web Server is the Interface between the application server and the client.
      Obtains the http request from the client and directs to a particular application server among the many application servers avialable.
      The Application server executes the BUSINESS LOGIC , retrieves the web page,accesses the database server,converts the scripting(Jsp and Asp) to HTML   and returns it to the web server.The webserver in turn gives a http response to the client,thus completing the flow of the cycle.


Sessions and Cookies difference
Cookies exists in the client system and the sessions exists in the servers.
Cookies can be manually deleted by the client,but a session gets expired when we close the particular web page .
Sessions act as a token to enter our own session(like a cabin assigned to us which no one other than us can access).
Cookies and sessions are stored in key value pairs,which is a similarity.eg)cookies are used to store uname and password to avoid retyping,and sessions are used to prevent accessing our gmail page with the back button once the logout is given.

SOAP and REST
Il just introduce to you a few points i know about the new technology REST.
SOAP and REST are a kind of architecture used in distributed systems.
What is SOAP to begin with??
         It is Simple Object Access Protocol used to access or retrieve objects from a server.But to do this we need the web services to be up and running.
To avoid this a new technology REST has come which runs just on HTML.Rest is moreflexible.
Rest is similar to SOAP but can simultaneously support different formats.
The methods used in rest are 
index
create
update
delete
new
show etc..

Pages that use REST architecture can be cached which is a major advantage.
Will get back to you with more details soonn.



- Sourcebits University
Cloud Computing
www.sourcebits.com

No comments:

Post a Comment