如果你希望学习 CDN 相关知识,那么建议你可以遍历以下软件的说明文档。
NGINX
cURL
aveline
V2EX  ›  CDN

Fastly 对大文件分发的改善

  •  
  •   aveline · Oct 29, 2014 · 3697 views
    This topic created in 4216 days ago, the information mentioned may be changed or developed.
    4 replies    2014-10-29 05:43:15 +08:00
    aveline
        1
    aveline  
    OP
       Oct 29, 2014
    仔细看了下,3.x 里文档是这么写的:

    Deliver the object to the client directly without fetching the whole object into varnish. If this request is pass'ed it will not be stored in memory. As of Varnish Cache 3.0 the object will marked as busy as it is delivered so only client can access the object.

    而 4.x 是:

    Deliver the object to the client directly without fetching the whole object into varnish. If this request is pass'ed it will not be stored in memory.
    Livid
        2
    Livid  
    MOD
    PRO
       Oct 29, 2014
    没有想到之前居然是这样的:

    To illustrate this, let’s look at a download example. If a 25MB application is being served from an origin over a connection that’s giving each client ~375kb/s, the download will take about 70 seconds. If that application was cached on Fastly without the Stream-on-Miss feature, then the first client to get a miss would have to wait 70 seconds while Fastly fetched it from the origin, and only then would they start downloading from our edge server.
    aveline
        3
    aveline  
    OP
       Oct 29, 2014 via iPhone
    @Livid 我也没有想到,另外 100M 的限制也是有点囧,可能因为早期 Varnish 只缓存到内存?
    sNullp
        4
    sNullp  
       Oct 29, 2014
    我之前测试各种反代程序就是为了观察这种情况:
    /t/141198
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5941 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 72ms · UTC 03:03 · PVG 11:03 · LAX 20:03 · JFK 23:03
    ♥ Do have faith in what you're doing.