简体   繁体   中英

What javascript tools or techniques can I use to manage conflict resolution when multiple users are updating shared state within a Google Wave gadget?

I think the answer to this question hinges on the whether or not it's possible to have access to the Operational Transformation architecture directly within the gadget API. It isn't currently there, so what might be the alternatives for fine-grained deltas, as opposed to just a big lock on each variable?

I think that the idea of Google Wave is that operational transformation is done and resolved on the server. So your gadget can only post delta's and get notified on updates, but could by definition not participate in conflict resolution and the like.

Interesting sideline could be how you could influence the way conflict resolution works be choosing a different form of storage from your gadget (dictionary with keys, arrays, strings). Some will behave differently in conflict situations, I'd expect.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM