Kod.io 2014

 

Web Services: past, present, and future

 

by Arne Brasseur / @plexus

 

Use the space bar or arrow keys to browse the slides.

WWW

  • Worldwide

  • Many different platforms

  • Has scaled like no other

  • Has evolved while largely keeping compatibility

1993

WWW starts to really take off

Concerns about early performance of HTTP

IETF gets to work on improved URI, HTTP, HTML

“Architectural Styles and the Design of Network-based Software Architectures”

Architectural Styles

Properties of WWW

  • low entry barrier

  • incremental deployment

  • transparent references/identifiers

  • extensible

  • simple

SOAP

  • Little to do with the web

  • Perceived as light weight compared to CORBA

  • RPC style

2005

AJAX

More buzzwords

Web 2.0

RIA

Web Devs Are Doing it for Themselves

  • Pragmatic

  • KISS

  • XML JSON

But..

  • Ad-hoc

  • RPC

  1. Read Fielding’s Thesis

  2. Pick a few ideas from it

  3. CRUD + JSON

  4. Calls it REST

  5. Watch Fielding throw a hissy fit

Hypermedia is the simultaneous presentation of information and controls such that the information becomes the affordance through which the user (or automaton) obtains choices and selects actions.

Hypermedia

Media (graphics, video, text) intertwined with hyperlinks, to form a non-linear medium of information

 

Affordance

The set of possible actions the user is made aware of

Adopting Hypermedia

  1. Define media types

  2. Define link relations

  3. Drive application state through hypermedia controls

HAL Example:

{
  "id": 79,
  "name": "Leicester Square Theatre",
  "_links": {
    "self": {
      "href": "/api/accounts/79"
    },
    "http://api.ticketsolve.com/rel/shows": {
      "href": "/api/shows"
    },
    "http://api.ticketsolve.com/rel/venue": {
      "href": "/api/venues/{id}",
      "templated": true
    }
  }
}

Initial Benefits

  • Discoverable API

  • Simple client, simply follow links

Longer Term Benefits

  • Change location of resources

  • Evolve API in backwards compatible way

“Software on the scale of decades”

  • References can be laid across systems, across orgs

  • Will depend on standardized media types, relationships

Future

Still a lot of experimentation happening with formats

  • HAL

  • Collection+JSON

  • JSON-LD

  • Siren

  • JSON-API

  • Uber

Future

  • Non-local Linking

  • Directory Services

  • Aggregators

  • Vendor-independent client apps

Q ?