Profile豆浆油条BlogLists Tools Help
    October 25

    如何通信(2)

    我所说的1和2的结合,就是全文比较和包含元操作的队列同步地结合,从服务器获得全文,在客户端merge,反方向则只用元操作的队列。
    好处是可以保证服务器的version控制,需要重点考虑的还是merge的策略,目的是让客户端看不出来我正在同步中,至少不影响他的操作。
    这样做似乎不需要写出一个cronExpression的js实现,减低了很多难度,而且符合了我eventItem和event是两个概念的需求。只需要同步的快点就行了。希望他在上不了网的时候少做一些什么重复性的设置。
    队列,我的想法还是保存一个字符串的js数组,然后用反射去执行,队列不成功就不断重试好了

    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Trackbacks (1)

    The trackback URL for this entry is:
    http://b051.spaces.live.com/blog/cns!9E2D0BC71827D4E9!236.trak
    Weblogs that reference this entry