Client server Model

Cards (15)

  • How does a client send packets to a server in a private network?
    By sending packets to the router's public IP
  • What information do packets sent by the client contain?
    The port number of the application on the server
  • What is the client-server model?
    Clients send requests and servers respond
  • What types of servers exist in a client-server model?
    File servers, database servers, email servers
  • What are the four CRUD commands and their SQL equivalents?
    • Create: INSERT
    • Retrieve: SELECT
    • Update: UPDATE
    • Delete: DELETE
  • What does REST stand for?
    Representational State Transfer
  • What HTTP methods does REST use to query databases?
    POST, GET, PUT, DELETE
  • What are the steps a client follows to connect to a database?
    1. Client-server request made
    2. Web browser responds with a web page
    3. Text file loads an API
    4. Client sends HTTP requests to the database server
    5. Database server responds with JSON or XML
    6. Client's browser processes and displays the response
  • What formats do database servers use to deliver responses?
    XML or JSON
  • What is the difference between XML and JSON?
    JSON is more compact and easier to read
  • What is a characteristic of XML compared to JSON?
    XML is sometimes seen as more flexible
  • What are the characteristics of thin-client networks?
    • Majority of processing power on servers
    • Easy to add new clients
    • Inexpensive client machines
    • Centralized control for updates and security
  • What is a disadvantage of thin-client networks?
    They require a powerful and expensive server
  • What are the characteristics of thick-client networks?
    • Clients provide their own processing power
    • Independence from servers
    • More powerful clients required
    • Harder to maintain without centralized control
  • What is a disadvantage of thick-client networks?
    They are harder to maintain and update