On Dec 31, 12:39 pm, Leonardo Borges <leonardoborges...@gmail.com>
wrote:
> Distributed transactions slow u down.... Why the hell would you want that?
> I'm yet to see a valid use case! They require sticky sessions *whi*ch suck
> for scalability! Keep in mind it's 4am on the 31st of December :-)

It's a surprisingly common request, Leonardo, especially when it's
necessary to include both messaging and persistence in the same tx.
Without XA, you have to implement your own middleware to account for
failed sends or writes, e.g. the "idempotent receiver" pattern. This
adds "accidental complexity" to your codebase, and it's hard to get
right, adding tests for all possible failure scenarios. With a good
TransactionManager, the performance hit is negligible, and your
codebase becomes *MUCH* simpler.

XA is certainly not for every app, but it can be a very attractive
solution for many. And fwiw, you can certainly make good use of XA
without sticky sessions, so I'm not totally clear on why you say
they're required.

Regardless, have a happy (and SAFE!) new year!

Jim

>
> Leonardo Borgeswww.leonardoborges.com
> Sent from my Galaxy Nexus(IceCreamSandwhich)
> On Jan 1, 2012 3:42 AM, "Bronsa" <brobro...@gmail.com> wrote:
>
> > maybe avout is what you're looking for?
> >https://github.com/liebke/avout
>
> > 2011/12/31 Michael Jaaka <michael.ja...@googlemail.com>
>
> >> Is there any attempt to make distributed transactions?
> >> The usage scenario is the same like in JEE apps.
> >> I mean, there is a web service call, the transaction is started, there
> >> are some changes to db, some jms sends and when there is no failure
> >> all is commited.
> >> Maybe someone is already using glassfish or spring from clojure? Some
> >> reference to github?
>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "Clojure" group.
> >> To post to this group, send email to clojure@googlegroups.com
> >> Note that posts from new members are moderated - please be patient with
> >> your first post.
> >> To unsubscribe from this group, send email to
> >> clojure+unsubscr...@googlegroups.com
> >> For more options, visit this group at
> >>http://groups.google.com/group/clojure?hl=en
>
> >  --
> > You received this message because you are subscribed to the Google
> > Groups "Clojure" group.
> > To post to this group, send email to clojure@googlegroups.com
> > Note that posts from new members are moderated - please be patient with
> > your first post.
> > To unsubscribe from this group, send email to
> > clojure+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/clojure?hl=en
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to