[Yanel-dev] Data saving/writing locking

Michael Wechner michael.wechner at wyona.com
Tue Feb 10 11:03:05 CET 2009


simon litwan schrieb:
> Michael Wechner schrieb:
>> Hi
>>
>> It happens that one wants to do data maintenance in the background, 
>> for example migrate from one repository to another
>> and hence all write/save access to data should be disabled.
>>
>> Normally this is no problem with "editors", because one can tell 
>> them, but for example with regular end-users who fill out a form and 
>> an entry gets registered that doesn't work out.
>>
>> I currently see two possibilities:
>>
>> 1) Somehow introduce a switch to block all write/save access via an API
> i would welcome this. see also my mail 
> http://lists.wyona.org/pipermail/yanel-development/2007-February/000457.html 
>

agreed.

I will enhance the API of the Yarep Repository class. Will send a 
concrete suggestion after some more thought.

>>
>> 2) Use a clustered environment where each cluster node can have it's 
>> own repository which get synchronized somehow
>> and hence one cluster node can be turned off and the corresponding 
>> repository can by synchronized after maintenance with the productive 
>> one and then the other way around
> i think this problem should not only be solved by using a cluster. i 
> think yanel should run within a cluster and without.

agreed, and I also think that should be no problem, because these two 
approaches are independent of each other

Cheers

Michi

>
> simon
>>
>> Any other ideas?
>>
>> Thanks
>>
>> Michi
>



More information about the Yanel-development mailing list