> Date: Fri, 4 Jun 2010 21:49:38 -0600
> From: [email protected]
> To: [email protected]
> Subject: Re: [PubSub] Feature request in std. item-id-conflic-resolution
> 
> On 5/31/10 12:45 AM, Mads Randstoft wrote:
> > In the system I am currently building we have implemented a feature
> > in pubsub that could be useable by others.
> > 
> > With publisher supplied item ids there is always a possibility for id
> > clashes and currently it is defined that an id clash results in
> > overwrite, this might not always be the best solution, indeed in our
> > system it is not accetable to have clashing ids.
> > 
> > My proposal is to introduce config option
> > pubsub#item_id_conflict_resolution as an optional part of item-ids
> > feature with this form element <field
> > var='pubsub#item_id_conflict_resolution' type='list-single'
> > label='How to handle publisher given item id conflicts'> 
> > <option><value>overwrite</value></option> 
> > <option><value>error</value></option> 
> > <option><value>create_new</value></option> <value>overwrite</value> 
> > </field>
> > 
> > The default value of "overwrite" works as the current default so
> > nothing breaks. The value "error" disallows publishes with same ids
> > and returns a <conflict/> error on publish. The value "create_new"
> > will ignore the conflicting id and create a new one, same as if no id
> > have been supplied.
> 
> Just curious: do you really need to configure this on a per-node basis?
> It seems to me more like a service-wide policy in your system.

Looks like an interesting feature.  A good safeguard against accidentally
overwriting an item, although I don't see much use for the create_new
option.  If the publisher is providing the id, it would typically mean the
id has some significance, so I can't imagine that one would want a 
contextually meaningless value used instead.

I think if this feature was wanted, it would also be desired that the choice
of an option actually determined whether a publisher id is required or not.
i.e. If I configure this option on configuration, then a publisher based id
is required.  (default case would be no id required, as it is now).

                                          
_________________________________________________________________
Game on: Challenge friends to great games on Messenger
http://go.microsoft.com/?linkid=9734387

Reply via email to