文档介绍:T he R est of REST Roy T . Fielding, . Chief Scientist, Day Software V .P ., Apache HTTP Server http://roy .gbiv .com/talks/ T u e sd a y, Se p t e mb e r 1 8 , 2 0 0 7 Ov er view Representational State T ransfer (REST) ? A little background - + Roy history = REST context - Why do we need a W eb architectural style? ? A touch of theory - Principled design - Architectural properties - Constraints that induce properties ? What parts of REST are missing from Ruby on Rails? ? Industry reactions to REST - and a little bit of Relaxation 2 Between us, we cover all knowledge; he knows all that can be known and I know the REST . [Mark T wain] T u e sd a y, Se p t e mb e r 1 8 , 2 0 0 7 J un 93 Dec 93 J un 94 Dec 94 J un 95 130 623 2,738 10,022 23,517 W hy me? 3 Public [Matthe w Gra y] Using XMosaic www . er Conditional GET 1st e URLs HTML 2nd tor SJ IETF REST BEGINS AS HTTP OBJECT MODEL libwww - perl Life's race will run, Life's work well done, Life's victory won, eth REST . [Dr . Edward Hazen Parker] Sep 07 = 135,166,473 (5,748x) T u e sd a y, Se p t e mb e r 1 8 , 2 0 0 7 T he Pr oblem (cir ca 1994) Early architecture was based on solid principles ? URLs, separation of concerns, simplicity ? lacked architectural description and rationale Protocols assumed a direct server connection ? no awareness of caching, proxies, or spiders ? many independent extensions Public awareness of the W eb was just beginning ? exponential growth threatened the ? commercialization meant new requirements and new stakeholders A modern W eb architecture was clearly needed ? but how do we avoid breaking the W eb in the process? 4 Absence of occupation is not REST , A mind quite vacant is a mind distress'd. [W illiam Cowper] T u e sd a y, Se p t e mb e r 1 8 , 2 0 0 7 5 Softw ar e Ar c hitectur es A software architecture is an abstraction of the run- time elements of a software system during some phase of its operation. A system may p