Difference between revisions of "Client Server Model"

From TRCCompSci - AQA Computer Science
Jump to: navigation, search
(CRUD)
(XML vs JSON)
Line 28: Line 28:
 
|-
 
|-
 
| Human Readable
 
| Human Readable
| row 1, cell 2
+
| It's easy to read because it's just defining objects and values.
| row 1, cell 3
+
| Less readable because it's contained within markup tags
|-
 
 
|-
 
|-
 
| Compact Code
 
| Compact Code
| row 2, cell 2
+
| Less code than XML
| row 2, cell 3
+
| More code than JSON
 
|-
 
|-
 
| Speed of Parsing
 
| Speed of Parsing
| row 3, cell 2
+
| Quicker, because it's defined as object and value
| row 3, cell 3
+
| Slower, because the data has to be extracted from tags
 
|-
 
|-
 
| Ease of Creation
 
| Ease of Creation
| row 4, cell 2
+
| Easier, because syntax is easier
| row 4, cell 3
+
| More like programming so more knowledge is needed.
 
|-
 
|-
 
| Flexibility & Extendibilty
 
| Flexibility & Extendibilty
| row 3, cell 2
+
| Only works with limited data types, not enough for all applications
| row 3, cell 3
+
| Gives total freedom, because you can create what data types there are, so it has greater flexibility
 
|}
 
|}
  
 
==REST Model==
 
==REST Model==

Revision as of 14:21, 13 March 2017

Response & Request

API

An API or Application Program Interface is a set of routines enabling one program to interface with each other. The code defines how the programs work together.

Twitter has an API to allow other programs to use the service.

WebSockets Protocol

CRUD

daddy

REST

JSON

XML

WIP

XML vs JSON

THIS IS MY SHOTGUN

JSON XML
Human Readable It's easy to read because it's just defining objects and values. Less readable because it's contained within markup tags
Compact Code Less code than XML More code than JSON
Speed of Parsing Quicker, because it's defined as object and value Slower, because the data has to be extracted from tags
Ease of Creation Easier, because syntax is easier More like programming so more knowledge is needed.
Flexibility & Extendibilty Only works with limited data types, not enough for all applications Gives total freedom, because you can create what data types there are, so it has greater flexibility

REST Model