[infinispan-dev] tx optimizations

Mircea Markus mircea.markus at jboss.com
Fri Apr 3 15:33:16 EDT 2009


Hi,

Here are two optimizations that can be implemented in our 2PC model:
1) if there are only two members int the cluster use an 1PC (or if you 
only replicate to one buddy, like in buddy replication). If the 1st 
phase fails remotely, then also rollback locally. This would reduce one 
network roundtrip.
2) when asked to prepare, a participant might return a value indicating 
that no changes were made (read-only participant), so this one won't 
need an commit message, so less roundtrip.
Wdyt?

Cheers,
Mircea



More information about the infinispan-dev mailing list