Question

In: Computer Science

In web programming what is the Client-Server model?

In web programming what is the Client-Server model?

Solutions

Expert Solution

As quoted by Wikipedia "Client–server model is a distributed application structure that partitions tasks or workloads between the providers of a resource or service, called servers, and service requesters, called clients".

definations:

Server-A server is a computer program or device that provides a service to another computer program and its user

Client-A client is a computer that connects to and uses the resources of a remote computer, or server.

LAN-A local-area network (LAN) is a computer network that spans a relatively small area

WAN-A wide area network (WAN) is a telecommunications network that extends over a large geographical area for the primary purpose of computer networking.

TCP/IP-The TCP/IP Model separates networking functions into discrete layers. Network models are used to conceptualize how networks should work, so that hardware and network protocols can inter-operate.

CLIENT-SERVER IN WEB PROGRAMMING;

Widely used client-server model is based on computer transactions in which the server fulfills a request made by a client.In this context, the client establishes a connection to the server over LAN(local area network) or or wide-area network (WAN), such as the Internet.

The client-server model is also a core network computing concept and a building functionality for email exchange and Web/database access. Web technologies and protocols built around the client-server model are:

  • Hypertext Transfer Protocol (HTTP)-used by the World Wide Web and this protocol defines how messages are formatted and transmitted, and what actions Web servers and browsers should take in response to various commands.
  • Domain Name System (DNS)- is the phone-book of the Internet i.e if you enter a address(eg -www.google.com) then it will take you to google server.
  • Simple Mail Transfer Protocol (SMTP)-is a set of communication guidelines that allow software to transmit an electronic mail over the internet
  • Telnet- telnet is a user command and an underlying TCP/IP protocol for accessing remote computers

An important advantage of the client-server model is that its centralized architecture helps make it easier to protect data with access controls that are enforced by security policies. Also, it doesn't matter if the clients and the server are built on the same operating system because data is transferred through client-server protocols that are platform-agnostic. Commonly used data methods includes JSON(java-script object notation), XML( eXtensible Markup Language).

An important disadvantage of the client-server model is that if too many clients simultaneously request data from the server, it may get overloaded. In addition to causing network congestion, too many requests may result in a denial of service.

At last we can simply define client-server model as

  • client sends a request
  • server process the request and send the respective data
  • client again receive the data and render it on the screen

Related Solutions

In web programming what is the Client-Server model?
In web programming what is the Client-Server model?
Web Programming: Explain how a session actually works in PHP, including how the client and server...
Web Programming: Explain how a session actually works in PHP, including how the client and server use the session ID to identify the session Then, compare and contrast cookies and sessions as a means of storing state information for a given user. Thank you
what will be the code in C programming for the client and server chat application for...
what will be the code in C programming for the client and server chat application for the below issue :- write the C Programming code that able client have a unique ID to be known by the server
How do I make a simple TCP python web client and web server using only "import...
How do I make a simple TCP python web client and web server using only "import socket"? Basically, the client connects to the server, and sends a HTTP GET request for a specific file (like a text file, HTML page, jpeg, png etc), the server checks for the file and sends a copy of the data to the client along with the response headers (like 404 if not found, or 200 if okay etc). The process would be: You first...
Explain the key difference between a web service application and a general client/server application
Explain the key difference between a web service application and a general client/server application
Assume a 2.8 MByte file is being uploaded from a client application to a web server....
Assume a 2.8 MByte file is being uploaded from a client application to a web server. Answer the following questions from the perspective of the protocol stack on the client. a. What protocol is in use at the application layer? b. Is this application layer protocol reliable? c. The application layer hands this 2.8 MByte file to the transport layer. What protocol is in use at the transport layer? d. Is this transport layer protocol reliable? e. Is this transport...
Web Server is the computer that stores Web Server Software and Website. If you are running...
Web Server is the computer that stores Web Server Software and Website. If you are running some service like Food Panda which type of Hosting Server will be used. Answer your question by discussion and comparison of different types of web hosting? If you have low budget so what will be the best possible hosting plan in this situation? Justify your answer by logical reasoning.
Greetings, Consider a client server model.The server sends the message 'I am the server' to client....
Greetings, Consider a client server model.The server sends the message 'I am the server' to client. Describe and compare in details how the client and server exchange these messages using internet domain in the following two modes. a) connection-oriented modes b) connectionless-oriented modes
In the provided client and server code, the server can serve to single client at a...
In the provided client and server code, the server can serve to single client at a time. You have to change server.java code so that it can connect and serve multiple clients at the same time. Use multithreading. =============================================================================== import java.io.*; import java.net.*; public class Client { public static void main(String[] args) throws IOException { String serverHostname = new String ("127.0.0.1"); if (args.length > 0) { //pass the hsotname through cmd argument serverHostname = args[0]; } System.out.println ("Attemping to connect...
The client connects to the server. The server accepts the connection. The client sends a line...
The client connects to the server. The server accepts the connection. The client sends a line of text containing only SHAKESPEARE_COUNTS. The server sends back a sequence of integers. The number of integers in that list specifies the number of words in each insult; the numbers themselves specify how many possible words there are in each position. So, for example, if you received the output 15 20 30, it would indicate that insults are three words long, with 15 possible...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT