Difference between revisions of "Client Server Model"
(→CRUD) |
(→CRUD) |
||
Line 9: | Line 9: | ||
==CRUD== | ==CRUD== | ||
− | -Data must be stored, managed and represented correctly | + | -Data must be stored, managed and represented correctly <br> |
− | -CRUD is an acronym to explain the main processes required | + | -CRUD is an acronym to explain the main processes required <br> |
− | Create | + | Create <br> |
− | Retrieve | + | Retrieve <br> |
− | Update | + | Update <br> |
− | Delete | + | Delete <br> |
− | -All are needed to have a complete working database | + | -All are needed to have a complete working database <br> |
− | -SQL and Relational Databases conform to CRUD: | + | -SQL and Relational Databases conform to CRUD: <br> |
− | Insert , Select, Update, Delete | + | Insert , Select, Update, Delete <br> |
==REST== | ==REST== |
Revision as of 14:23, 13 March 2017
Contents
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
-Data must be stored, managed and represented correctly
-CRUD is an acronym to explain the main processes required
Create
Retrieve
Update
Delete
-All are needed to have a complete working database
-SQL and Relational Databases conform to CRUD:
Insert , Select, Update, Delete
REST
JSON
XML
WIP
XML vs JSON
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 |