[infinispan-dev] rethinking ISPN transactions

Mark Little mlittle at redhat.com
Wed Dec 4 06:08:34 EST 2013


Any time you use transactions and disable recovery is a time to step back and rethink what you really need.

Mark.


On 3 Dec 2013, at 13:51, Mircea Markus wrote:

> On Dec 3, 2013, at 1:26 PM, Mark Little <mlittle at redhat.com> wrote:
> 
>> Why write a log if there is no recovery? That's wrong.
> 
> AFAIK the recovery is configured as a separate subsystem within the TM. If recovery can be disabled entirely within TM, including TM's log writes, then indeed as Dan suggested, XA resource enlisted would have the same performance as synchronization enlistments. I don't find this setup very nice though :-)
> 
>> 
>> Mark.
>> 
>> 
>> On 29 Nov 2013, at 14:39, Mircea Markus wrote:
>> 
>>> 
>>> On Nov 21, 2013, at 3:18 PM, Dan Berindei <dan.berindei at gmail.com> wrote:
>>> 
>>>> Hmm, couldn't you just disable recovery in the TM to get the same performance with a XA resource as with a synchronization?
>>>> 
>>> 
>>> I don't think that would be enough actually. Even without recovery, for transactions (XA) that have more than one participant registered, the TM writes information on the transaction log.
>>> This is a persistent log and writing to it slows down things.
>>> 
>>> 
>>>> 
>>>> On Thu, Nov 21, 2013 at 1:57 PM, Pedro Ruivo <pedro at infinispan.org> wrote:
>>>> 
>>>> 
>>>> On 11/21/2013 11:34 AM, Galder Zamarreño wrote:
>>>>> 
>>>>> 
>>>>> It's way faster actually. The speed difference from all the extra work required by Transaction Manager to deal with multiple XA resources, make transactions recoverable..etc. We've done tests in the past (i.e. Hibernate 2LC) comparing both and the difference was quite big.
>>>>> 
>>>> 
>>>> you are right. I forgot the recovery mechanism :)
>>>> _______________________________________________
>>>> infinispan-dev mailing list
>>>> infinispan-dev at lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>>>> 
>>>> _______________________________________________
>>>> infinispan-dev mailing list
>>>> infinispan-dev at lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>>> 
>>> Cheers,
>>> -- 
>>> Mircea Markus
>>> Infinispan lead (www.infinispan.org)
>>> 
>>> 
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> infinispan-dev mailing list
>>> infinispan-dev at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>> 
>> ---
>> Mark Little
>> mlittle at redhat.com
>> 
>> JBoss, by Red Hat
>> Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom.
>> Registered in UK and Wales under Company Registration No. 3798903 Directors: Michael Cunningham (USA), Charlie Peters (USA), Matt Parsons (USA) and Brendan Lane (Ireland).
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> infinispan-dev mailing list
>> infinispan-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
> 
> Cheers,
> -- 
> Mircea Markus
> Infinispan lead (www.infinispan.org)
> 
> 
> 
> 
> 
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev

---
Mark Little
mlittle at redhat.com

JBoss, by Red Hat
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom.
Registered in UK and Wales under Company Registration No. 3798903 Directors: Michael Cunningham (USA), Charlie Peters (USA), Matt Parsons (USA) and Brendan Lane (Ireland).







More information about the infinispan-dev mailing list