Client-Side Processing

  • Pre-processing prior to server communication
  • Interactivity

Java-Script

  • Run in-browser
  • Enables users to have a better web experience
  • Better website functionality

Advantages

  • More immediate interactivity
  • Quick execution
  • Removes unnecessary server processing
  • Data cannot be intercepted
    • Enables encryption prior to sending

Disadvantages

  • Not all browsers support JavaScript
  • Dependent on machine performance
  • Different browsers process scripts in different ways

Application Programming Interface (API)

  • Processed by the client
  • Responded to by the relevant server

Server-Side Processing

  • Handles user input (additional layer of validation)
  • Displays pages
  • Structure web applications
  • Interact with permanent storage including databases

Advantages

  • Client may not always have the capacity to enact (i.e., provide the data)
  • Holds sensitive information, prevents the client from having it
    • Some information may be protected by law
  • Additional validation
    • JavaScript an be easily circumvented
    • Requests can be falsified

Disadvantages

  • Additional server load
    • Higher costs
  • Delay due to connection time (ping)