Resource-Oriented Architecture (ROA) <div - - PowerPoint PPT Presentation

resource oriented architecture roa
SMART_READER_LITE
LIVE PREVIEW

Resource-Oriented Architecture (ROA) <div - - PowerPoint PPT Presentation

15 ROA longbiaochen@xmu.edu.cn 2020 Resource-Oriented Architecture (ROA) <div


slide-1
SLIDE 1

第15章

面向资源的架构( 面向资源的架构(ROA)

陈龙彪 longbiaochen@xmu.edu.cn 厦门大学信息学院 2020年春学期

slide-2
SLIDE 2

Resource-Oriented Architecture (ROA) 面向资源的架构 面向资源的架构

<div id=”author”>Scott Davis</div>

2

slide-3
SLIDE 3

Scott Davis

3

slide-4
SLIDE 4

Web Services

4

slide-5
SLIDE 5

5

slide-6
SLIDE 6

6

slide-7
SLIDE 7

WebServices

7

slide-8
SLIDE 8

8

slide-9
SLIDE 9

9

Dave Winer, co-creator of XML-RPC, SOAP, and RSS:

I love SOAP . SOAP was the lawyer of the

  • family. It was the one that had the

potential to bring everyone together. But you’d have to say at this point that SOAP is a failure. How long are we supposed to wait for the magic of SOAP to happen?

9

slide-10
SLIDE 10

I was recently talking with Jeff Barr, Amazon's chief web services evangelist. Amazon has both SOAP and REST interfaces to their web services, and 85%

  • f their usage is of the REST interface.

10

slide-11
SLIDE 11

Despite all of the corporate hype over the SOAP stack, this is pretty compelling evidence that developers like the simpler REST approach.

I've always liked technologies that have low barriers to entry and grassroots adoption, and simple XML

  • ver HTTP approach seems to have that winning

combination.

11

slide-12
SLIDE 12

REST A set of architectural principles

SOAP A specification

12

slide-13
SLIDE 13

REST is...

REpresentational StateTransfer

13

slide-14
SLIDE 14

Representational State Transfer (REST) is a software architectural style for distributed hypermedia systems like the world wide

  • web. The term originated in a 2000

doctoral dissertation about the web written by Roy Fielding, one of the principal authors of the HTTP protocol specification, and has quickly passed into widespread use in the networking community. Systems that follow Fielding's REST principles are often referred to as RESTful. (Source: http://en.wikipedia.org/wiki/ Representational_State_Transfer)

14

Roy Fielding

slide-15
SLIDE 15

Resource-Oriented Architecture (noun-oriented)

Service-Oriented Architecture (RPC, verb-oriented)

15

slide-16
SLIDE 16

16

slide-17
SLIDE 17

17

slide-18
SLIDE 18

??? A ROA implementation

SOAP A SOA implementation

18

slide-19
SLIDE 19

Syndication

19

聚合

slide-20
SLIDE 20

20

slide-21
SLIDE 21

Three things draw you in:

chronology (newest first) syndication (it comes to you) permalink (pass it on)

21

slide-22
SLIDE 22

22

slide-23
SLIDE 23

2 4

23

slide-24
SLIDE 24

24

slide-25
SLIDE 25

What is RSS?

  • RDF Site Summary
  • Rich Site Summary
  • Really Simple Syndication
  • Nothing: just three plain old letters

It’s a pity nobody used an ‘S’ for “Standardization” …

25

slide-26
SLIDE 26

When Atom emerged as a format intended to rival or replace RSS, CNET described the motivation of its creators as follows: "Winer's

  • pponents are seeking a new format

that would clarify RSS ambiguities, consolidate its multiple versions, expand its capabilities, and fall under the auspices of a traditional standards organization." A brief description of some of the ways Atom 1.0 differs from RSS 2.0 has been given by Tim Bray, who played a major role in the creation of Atom.

26

Tim Bray

slide-27
SLIDE 27

The Atom syndication format was published as an IETF proposed standard in RFC 4287 The Atom Publishing Protocol was published as RFC 5023.

27

slide-28
SLIDE 28

Atom A ROA implementation

SOAP A SOA implementation

28

slide-29
SLIDE 29

The Atom Publishing Protocol uses HTTP to edit and author web resources. The Atom Protocol uses the following HTTP methods:

  • GET is used to retrieve a resource or perform a query.
  • POST is used to create a new, dynamically-named resource.
  • PUT is used to update a known resource.
  • DELETE is used to remove a resource.

Source: http://ietfreport.isoc.org/idref/draft-ietf-atompub-protocol/

29

slide-30
SLIDE 30

30

slide-31
SLIDE 31

Who is using Atom?

31

slide-32
SLIDE 32

32

slide-33
SLIDE 33

33

slide-34
SLIDE 34

34

slide-35
SLIDE 35

Atom is... An IETF Standard RESTful A syndication format

35

slide-36
SLIDE 36

Resource-Oriented Architecture (ROA) and REST

<div id=”author”>Scott Davis</div>

36