Client Server Model

Cards (20)

  • What is the client-server model?
    A model for communication between client and server
  • What protocol should you be familiar with in the client-server model?
    Websocket protocol
  • Why is the Websocket protocol used?
    For real-time communication between client and server
  • What does CRUD stand for?
    Create, Retrieve, Update, Delete
  • How does REST relate to CRUD operations?
    It maps CRUD to database functions
  • What SQL command corresponds to the POST method in REST?
    INSERT
  • What SQL command corresponds to the GET method in REST?
    SELECT
  • What SQL command corresponds to the DELETE method in REST?
    DELETE
  • What SQL command corresponds to the PUT method in REST?
    UPDATE
  • What is JSON?
    JavaScript Object Notation for data formatting
  • How does JSON compare to XML?
    JSON is easier to read than XML
  • What is XML?
    Extensible Markup Language for data encoding
  • What is a key advantage of JSON?
    Easy to read with less code
  • What is a key disadvantage of JSON?
    Limited range of data types
  • What is a key advantage of XML?
    Greater flexibility in data types
  • What is a key disadvantage of XML?
    Harder to read and requires more code
  • What are the principles of the client-server model?

    • Sender and receiver roles
    • Client makes requests to the server
    • Server responds to client requests
    • Provides requested services
  • What is the role of APIs in the client-server model?
    • Defines interaction between programs
    • Composed of standardized subroutines
    • Customizable for program interfaces
  • What is the function of the Websocket protocol in APIs?
    • Creates a connection between client and server
    • Allows simultaneous data exchange
    • Enables real-time collaboration
  • What is REST and its significance in networked applications?
    • Design methodology for database applications
    • Uses HTTP for CRUD operations
    • Efficient for implementing applications over networks