In the client-server model, which is true?
Options
- The server always starts the communication first
- Clients send requests; servers process and respond (Correct option)
- Clients store all the data of the whole system
- There is only ever one client at any one time
Answer
Clients (browser, mobile app) send requests; servers process them and send responses
Why
The client is the program the user interacts with (a browser, a phone app). The server is a program on another machine that holds data and business logic.
The client sends a request ('give me my orders'); the server checks permissions, reads the database and returns a response.
One server usually handles many clients at the same time.
Remember
Client asks, server answers.