Loading ...
Sorry, an error occurred while loading the content.

5079Re: [rest-discuss] Re: transactions with REST

Expand Messages
  • Peter Marks
    Jun 4, 2005
    • 0 Attachment
      Distributed transactions are hard to do. You might be interested in looking at how Jini Technology ( http://www.jini.org ) does it:

      http://www.jini.org/nonav/standards/davis/doc/specs/html/txn-spec.html

      Note, also, that there is a free implementation of a Transaction Manager (that can also be distributed) built according to the above specification. It can be obtained at the Jini website.

      It would be interesting to see this style of distributed transaction management  done in support of a RESTful application.

      Maybe if I get the time...

      Peter

      Andrzej Jan Taramina wrote:
      > Nic:
      >
      >  > In the context of this discussion a programmer, who was actually very
      > much in
      >  > agreement with the REST way of doing things, suggested that one of
      > the things
      >  > REST could not do was transactions.
      >
      > REST (and even SOAP) calls are typically of long duration. This is
      > exacerbated if the invocation is going across the internet.
      >
      > In that situation, it is usually considered very poor design to hold a
      > transaction and tie up the resources on the back end.
      >
      > Better bet is to keep the granularity of your REST (or WS) calls coarse
      > enough that the transaction is handled entirely by the back end.
      >
      > It points to your colleage thinking of the world in local RPC terms.  That
      > doesn't fly very well in a distributed system.  You might want to point him
      > at the Fallacies of Distributed Computing  (from Peter Deustch, extended by
      > James Gosling):
      >
      > 1) The network is reliable.
      > 2) Latency is zero.
      > 3) Bandwidth is infinite.
      > 4) The network is secure.
      > 5) Topology doesn't change.
      > 6) There is one administrator.
      > 7) Transport cost is zero.
      > 8) The network is homogeneous.
      >
      >
      > In other words, wrt REST: it's a feature, not a bug! ;-)
      >
      > Andrzej Jan Taramina
      > Chaeron Corporation: Enterprise System Solutions
      > http://www.chaeron.com
      >
      >
      > ------------------------------------------------------------------------
      > *Yahoo! Groups Links*
      >
      >     * To visit your group on the web, go to:
      >       http://groups.yahoo.com/group/rest-discuss/
      >
      >     * To unsubscribe from this group, send an email to:
      >       rest-discuss-unsubscribe@yahoogroups.com
      >       <mailto:rest-discuss-unsubscribe@yahoogroups.com?subject=Unsubscribe>
      >
      >     * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
      >       Service <http://docs.yahoo.com/info/terms/>.
      >
      >

    • Show all 19 messages in this topic