• sugar_in_your_tea@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 months ago

    the server isn’t live compressing it

    It is for generated data, like a JSON API. Static content is often pre-compressed though, since there’s no reason to do that every request if it can be done once. Compression formats is largely limited to whatever the client supports, and gzip works pretty much everywhere, so it’s generally preferred.

    At least that’s my understanding. Every project I’ve worked on has a pretty small userbase, so something like 50-100 concurrent users (mostly B2B projects), meaning we didn’t have the same problems as something like a CDN might have.

    I’m not really sure how latency is related for FS operations. Are you saying if the CPU is lagging behind the read speed, it’ll mess up the stream? Or are you saying something else? I’m not an expert on filesystems.