vu

Notes for Vanderbilt University

View the Project on GitHub

Quiz 2 REST Notes

Architecture vs style

REST (Representational State Transfer)

Requirements of the Web

Software Architecture

Architecture Style

REST derivation (constraints)

  1. Root is NULL (allow anything)
  2. Client server
    • evolve independently
  3. Client stateless server
    • client side maintains state
    • pros:
      • firewall can inspect request details
      • reliability since state is all on client
      • scalability since less resource consumption
    • cons:
      • more data sent over network RIP nexus5x’s (mobile phones)
      • consistency across versions
  4. Caching
    • Minimize response time
    • Reliability decreases if cache is stale
    • Response has to indicate cache-bility
  5. Uniform interface
    • dynamic content
    • cons
      • transform data to match uniform style
  6. Layered system
    • most widespread is 3-tier architecture
      • presentation
      • application processing
      • data management
    • layers evolve independently
    • Overhead might increase crossing layers
    • This + #6 allows for intermediaries(proxies, caches, firewalls)
  7. Code on demand
    • clients can download code and run applets/scripts

Studying architectures