InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

GET-only REST Integration Patterns Blur The Line Between Synchronization And Integration

Posted by Dilip Krishnan on Oct 29, 2009

Sections
Architecture & Design,
Development,
Enterprise Architecture
Topics
REST ,
.NET ,
SOA
Tags
Patterns ,
Sync Framework ,
Atom

Duncan Cragg explains his idea/pattern for a purely GET based REST integration pattern, which turns out to be very similar to the vision of Microsoft's FeedSync Specification. He explains the pattern with the help of hypothetical conversation with an enterprise architect

Our worried Enterprise Architect noticed that such Service-Orientation permeated REST practice: there were "REST APIs" to Web sites, or "Web services" with a small 's'. Even AtomPub had a "service document"! Some patterns, like AtomPub, offered just simple read/write data services through the full HTTP method set. Some simply used such a read/write interface as a wrapper around more complex service functions.

He wondered: "Where's the Web in REST integration? The Web works great without PUT and DELETE: isn't using GET on its own RESTful enough?"

He calls his GET based integration pattern, FOREST, a RESTful observer synchronization pattern, as he explains

FOREST is a GET-only REST Integration Pattern defined simply as: A resource's state depends on the state of other resources that it links to. [...] This means that resource servers must also be clients in order to see those dependencies.

He goes on to give a few examples of such integration scenarios including mashups  …

FOREST is a REST Pattern derived from GET-only or polling Web use-cases, including certain kinds of mashups for e.g. feed aggregators or filters, sites that create summaries of other Web pages etc.

… and its relevance in enterprises.

FOREST is a REST Pattern for building "Enterprise Mashups" in an ROA / WOA / SOA. [...] Enterprise Mashup Markup Language is the nearest thing to this that I know about, but FOREST is quite different: it is much simpler and is /only/ a REST Pattern.

As such the idea of using GET Based synchronization of ATOM/RSS feeds has already been around a while in the form of  FeedSync, a feed synchronization specification from Microsoft.

The scope of FeedSync for Atom and RSS is to define the minimum extensions necessary to enable loosely-cooperating applications to use Atom and RSS feeds as the basis for item sharing – that is, the bi-directional, asynchronous synchronization of new and changed items amongst two or more cross-subscribed feeds.

This is a form of integration in which resource representations, typically the canonical data model, are exposed as a feed, that, endpoints can use for pull-synchronization. The idea that these endpoints can be devices, services, applications etc. that can synchronize resource state over HTTP using GET semantics will only make variations of this pattern more ubiquitous.

  • This article is part of a featured topic series on SOA

No comments

Watch Thread Reply

Educational Content

New-age Transactional Systems - Not Your Grandpa's OLTP

John Hugg discusses high volume transaction processing applications with high and low frequency profiles, and how VoltDB can be used for that purpose.

Cool Code

Kevlin Henney examines code samples to see what can be learned from them starting from the premise that one won’t write great code unless he knows how to read it.

Collaboration: At the Extremities of Extreme

Jason Ayers share the observations he made watching a team of developers collaborating in real time on the same code base, pushing XP, pair programming and continuous integration to their extremes.

Yesod Web Framework

Michael Snoyman presents Yesod, a web framework written in Haskell and containing a web server, templating, ORM, libraries (templating, gravatar, etc.).

Transactions without Transactions

Richard Kreuter and Kyle Banker on how to avoid classical RDBMS transactional systems by using compensation mechanisms, transactional messaging or transactional procedures.

Attila Szegedi on JVM and GC Performance Tuning at Twitter

Attila Szegedi talks about performance tuning Java and Scala programs at Twitter: how to approach GC problems, the importance of asynchronous I/O, when to use MySQL/Cassandra/Redis, and much more.

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.

Interview: Software Systems Architecture: Working With Stakeholders Using Viewpoints and Perspectives

InfoQ spoke to the authors of Software Systems Architecture on a couple of new topics, the System Context viewpoint and Agile, which have been added to the second edition.