Skip to content

Chunk nginx cache #415

@willscott

Description

@willscott

The current translation looks like

flowchart LR
    A[Caboose] -->|/file.big?bytes=0:1024| cr["car range"]
    subgraph L1
    cr -->|/file.big| nx["nginx caching"]
    nx -.->|"`*on cache miss*`"| l1["l1 shim"]
    l1 --> l["lassie"]
    end
    l --> o["Origin"]
Loading

We should have the nginx caching layer include a directive like

slice 10m;

This will update the sequence to look like:

flowchart LR
    A[Caboose] -->|/file.big?bytes=0:1024| cr["car range"]
    subgraph L1
    cr -->|/file.big| nx["nginx caching"]
    nx -.-> |/file.big\nrange:0-10meg| l1["l1 shim"]
    l1 --> |/file.big?bytes=0:10m| l["lassie"]
    end
    l --> o["Origin"]
Loading

There are 3 things needed for this to land:

  • inclusion of the slice directive in nginx
  • translation from the range header to bytes argument in l1 shim
  • support for bytes in lassie

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions