Section 10 Chapter 61 - Client Server Model Flashcards
Client Server Model
A client sends a request message and the server should respond with the data requested
WebSocket protocol
Defines an API establishing a full duplex (bidirectional) connection between the client and the server. Packets are constantly being sent both ways and the packets have no security checks and much smaller header data. The connection is persistent
CRUD mappings
CRUD - HTTP - SQL Create - Post - Insert Retrieve - Get - Select Update - Put - Update Delete - Delete - Delete
Use of REST
Client requests some data and sends the command using CRUD. Client side javascript passes HTTP request to database server. Server returns an JSON/XML response which is forwarded to client
Advantages of JSON over XML (4)
- Easier to read
- Compact
- Easier to create
- Easier to parse
Thin vs Thick client
The thickness of a client refers to how much processing and storage is done on the client vs on the server