1 Reply Latest reply on Aug 5, 2013 11:57 AM by mircea.markus

    Replication when using transaction

    lazetics

      Hi,

       

      I posted a similar question some time ago, but probably because of the vast scope of the question I did not get any answer. I will try to summarize here.

       

      So, when executing operations inside a transatcion, are the data replicated with every write operation or only at the transatcion commit time? When is the transaction propagated to the other nodes in the cluster? Does something change if using asynchronous replication instead of synchronous?

       

      Thank you in advance,

      Strahinja Lazetic

        • 1. Re: Replication when using transaction
          mircea.markus

          So, when executing operations inside a transatcion, are the data replicated with every write operation or only at the transatcion commit time? When is the transaction propagated to the other nodes in the cluster? Does something change if using asynchronous replication instead of synchronous?

          if you're using optimistic transactions data gets only replicated at commit time: 2 messages are sent for sync caches (prepare + commit); 1 message for async cahes (commit).

          if you're using pessimistic transactions, a remote messages (lock acquisiton) is sent on each operation.

          More on transactions here: https://docs.jboss.org/author/display/ISPN/Infinispan+transactions