simulate a transaction
guido.medina at temetra.com
Thu Apr 4 10:41:51 EDT 2013
Also, you might not need a notification when the Riak operation succeed
if you set a default high N value, let's say, for 5 nodes, N value = 3
should give you a good safe bet, meaning, Riak client will return
successfully when the key was written to at least 3 nodes, so it only
leaves with the rollback policy implementation.
I know I'm suggesting the opposite (assume things went OK and take
action when they go wrong)
If that makes sense for your application.
On 04/04/13 15:33, Guido Medina wrote:
> At least on two-phase commit enabled environment you can implement the
> rollback to "undo" your action, you expect things to go right and a
> very small % to go wrong, so implementing a rollback policy isn't such
> a bad idea, I had to do the same years ago for a payment client, when
> things went wrong on our DB, we send a revert payment, since once the
> payment was gone, it had no transactional behaviour so we had to
> implement a rollback policy.
> Hope that helps,
> On 04/04/13 15:01, Sean Cribbs wrote:
>> You cannot simulate transactions, really (see also
>> http://aphyr.com/posts/254-burn-the-library). However, if you want to
>> receive notifications and take action when something happens, you can
>> add a postcommit hook (see
>> In the past, developers have added hooks that push updates into a
>> RabbitMQ broker or ZeroMQ channel.
>> On Wed, Apr 3, 2013 at 7:59 PM, Brisa Jiménez
>> <brisa.jimenez.f at gmail.com> wrote:
>>> I want to simulate a transaction.
>>> I want to know when a riak operation happens.
>>> I know that riak isn't a relational database, but it is important
>>> for me in
>>> particular cases to undo operations when something goes wrong.
>>> Any have any suggestion for me about I want to do?
>>> Thank you very much.
>>> riak-users mailing list
>>> riak-users at lists.basho.com
More information about the riak-users