software auto-update mechanism

本文介绍了Google Chromium项目中采用的自动更新机制Courgette,它通过比较汇编代码差异来减小更新包的大小。此外,还提到了Omaha更新系统,虽然配置复杂,但其协议文档详尽,使得在Google App Engine上创建兼容服务器成为可能。
摘要由CSDN通过智能技术生成

http://www.chromium.org/developers/design-documents/software-updates-courgette

上面是google chromium使用的自动更新机制,可以借鉴,她利用比较汇编代码的不同减少更新的数据量,

另外还有一个

https://code.google.com/p/omaha/ 据说这个配置比较复杂。

We use Omaha for our products. Initially there was quite a bit of work to change hardcoded URLs and strings. Also the server is not open source, but the protocol is well documented so it was not difficult to create a compatible server using Google App Engine.


下面贴一个courgette的design document

Software Updates: Courgette

How Courgette works
As I described in  Smaller is faster (and safer too), we wrote a new differential compression algorithm for making Google Chrome updates significantly smaller. 

We want smaller updates because it  narrows the window of vulnerability.  If the update is a tenth of the size, we can push ten times as many per unit of bandwidth.  We have enough users that this means more users will be protected earlier.  A secondary benefit is that a smaller update will work better for users who don't have great connectivity.

Rather than push put a whole new 10MB update, we send out a diff that takes the previous version of Google Chrome and generates the new version.  We tried several binary diff algorithms and have been using  bsdiff up until now.  We are big fans of bsdiff - it is small and worked better than anything else we tried.

But bsdiff was still producing diffs that were bigger than we felt were necessary.  So we wrote a new diff algorithm that knows more about the kind of data we are pushing - large files containing compiled executables.  Here are the sizes in bytes for the recent 190.1->190.4 update on the developer channel:
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值