Amazon Interview Question
Software Engineer / DevelopersTeam: RCX
Country: United States
Interview Type: In-Person
When user enters any web address in address bar of web browser (i.e. amazon.com ), this address is first sent to DNS server. Now this DNS converts URL into corresponding IP Address ( i.e. 192.23.4.3 ). Now this IP address is searched and when corresponding server is found then required data get fetched from that. now response is again transformed by DNS and it gets back to us. Which is shown by any web browser (on application level). This is the whole procedure of website data retrieval.
The entire process of fetching data from the Web can be divided into the following steps:
1-DNS Resolution based on the URL to get the IP address of the server where the pages reside.
2- HTTP Connection between the Server and the Client.(browser).
3- TCP packets being exchanged between the server and clients (Assuming the application is on TCP)
1.First the DNS server searches for the URL to get the IP address.
2. Then the TCP connection is made to the server and a http request is made to the server.
3. Once the response is recieved, it is decode to see if it is a normal response or authorization request/error etc. they are handled accordingly.
4. if the response is page/image then it is displayed in the browser or else the file is downloaded.
5. if the response is cachable then it is cached.
6. Then the connection is closed if there are no more requests
When user enters any web address in address bar of web browser (i.e. amazon.com ), this address is first sent to DNS server. Now this DNS converts URL into corresponding IP Address ( i.e. 192.23.4.3 ). Now this IP address is searched and when corresponding server is found then required data get fetched from that. now response is again transformed by DNS and it gets back to us. Which is shown by any web browser (on application level). This is the whole procedure of website data retrieval.
The entire process of fetching data from the Web can be divided into the following steps:
- Anonymous January 11, 20121-DNS Resolution based on the URL to get the IP address of the server where the pages reside.
2- HTTP Connection between the Server and the Client.(browser).
3- TCP packets being exchanged between the server and clients (Assuming the application is on TCP)