Server side and client side processing Flashcards
What is server side processing
when a client sends data to a server for it to be processed. This
means no information is processed on the client computer
Common server side processing languages
SQL or PHP
Why is server side processing useful
● Does not require plugins
● Can perform large calculations much faster than clients
● Not browser dependent,
● More secure
What is client side processing
when a client processes the data on a local device. This means
that all of the information is processed on the client computer
Why is client side processing useful
● Webpage can immediately respond to user actions
● Executes quickly
● Gives developers more control over the behaviour and look of the website
Where does client side processing take place
Web browsers
Where does server side processing take place
on the
webserver. Data is sent from the browser
to the server, the server processes it and
sends the output back to the browser
What does client side processing not require
Data to be sent back and forth meaning code is much more responsive
Is code visible or invisible with client side processing
Code is visible which means it can be
copied
What does server side processing take away
the
reliance of the browser having the correct
interpreter
Is code invisible or visible to the user with server side processing
It hides the code from the user,
protecting copyright and avoiding it being
amended/circumvented
Disadvantage of server side processing
Server side
processing puts extra load on the server.
This is at the cost of the company hosting
the website
When is client side processing best used
Client side processing is best used when
it’s not critical code that runs or where a quick response is needed
When is server side processing best used
Server side processing is best used where
it is integral that processing is carried out.
It is often used for generating content or accessing secure data
What are the Get and Post requests?
The two main types of HTTP request. Get requests are supposed to be harmless and repeatable and can be bookmarked. Post requests are for when a change is meant occur (e.g. create, update or destroy operations).