PROVIDER - Open-source HTTP accelerator

Varnish Cache

Varnish Cache is a BSD-2-Clause open-source HTTP accelerator that absorbs requests in memory through VCL policies, terminates TLS in-process and runs as a container, with enterprise and hosted CDN options from Varnish Software.

CDN Acceleration Sweden 2026.11.29 6 views
4.1pts
Advertisement

Service Overview

Varnish Cache is a BSD-2-Clause open-source HTTP accelerator: a reverse caching proxy placed in front of an origin that checks an in-memory cache first, answers hits directly and proxies misses. It is now a downstream distribution of the Vinyl Cache project, aimed at cloud-native deployments with in-process TLS, container images and a long-term-support release cadence.

Code and documentation come from the open-source community, while commercial work sits with Varnish Software in Stockholm, Sweden, whose line-up includes the programmable edge platform Varnish Enterprise, the European-hosted Varnish CDN, the Ora Streaming video product and CDN in a Box.

Key Strengths

  • A cache hit costs only a handful of system calls, keeping latency low and memory bounded.
  • Policies are written in VCL and compiled to native code, so decisions execute per request.
  • TLS terminates in-process, and the service deploys directly as a container image.
  • Intel and the vendor measured 1.5Tbps from a single server acting as one CDN node.
  • The open-source edition is BSD-2-Clause; the enterprise edition adds commercial licensing.

Limitations

  • It is a caching component: node scheduling, bandwidth purchasing and billing stay with the operator.
  • VCL has a steep learning curve, and policy changes need review and release pipelines.
  • Enterprise features and support are commercially licensed, and no public price is listed.
  • Documentation is English-first, with Chinese material depending on community translations.
  • The open-source edition carries no SLA, so production needs owned monitoring and capacity plans.

Product Ecosystem

How Varnish Cache handles a request (November 2026) Client request HTTP or HTTPS VCL decision compiled native code In-memory cache hit returns, expires per headers Origin fetch miss follows policy, writes back Scope: the how-it-works section on varnish-cache.org, November 2026.
Figure 1: Varnish Cache request path from VCL decision to memory hit (scope: official explanation, November 2026)

The figure below follows the request order, where the hit or miss split happens at the cache lookup.

Varnish Cache

The caching core handles request parsing, object storage and expiry, with configuration pushed to workers as VCL. Bundled tooling collects logs and metrics per request, which makes it possible to trace hit, miss and origin fetch reasons when hit ratio drops.

VCL and Extension Modules

VCL describes logic for request entry, cache lookup, origin fetch and response, compiled into native code so branching stays cheap. Community and enterprise modules extend it to ESI assembly, dynamic backends, TLS to origin and finer cache policies.

Varnish Enterprise

The enterprise edition targets teams that need vendor support, adding commercial modules, official support and service level commitments on top of the open-source core, and positioning itself as a programmable edge platform for video, web and platform workloads.

Hosted and Adjacent Products

Varnish CDN is a European-hosted delivery service emphasising predictable performance and data locality; Ora Streaming targets high-concurrency, low-latency video; CDN in a Box stands up delivery on partner networks; AI Accelerator caches data close to compute to keep GPUs fed.

Use Cases

  • Good fit | Static content and API caching in front of an origin: hits barely touch disk, so latency is stable.
  • Good fit | Teams pushing business logic to the edge: VCL runs custom decisions per request.
  • Good fit | Container and Kubernetes environments: the official image deploys as a container.
  • Good fit | European workloads with data residency rules: the hosted CDN keeps data local.
  • Evaluate first | Teams without on-call operations: nodes, bandwidth and monitoring are self-managed.
  • Evaluate first | Production systems needing a vendor SLA: the open-source edition promises nothing.
  • Evaluate first | Businesses with global traffic spikes: self-built capacity scales less elastically.

Pricing & Billing Selection

Access path Reference price Billing unit Main capability
Varnish Cache (open source) Free (USD 0) Per deployment node, no licence fee BSD-2-Clause licence, core, VCL and base tools
Varnish Enterprise Commercial licence Per node or subscription Commercial modules, support and service levels
Varnish CDN Commercial service By usage European-hosted CDN with data locality
Training and consulting Commercial service Per contract Architecture review, tuning and team training

Source note: details come from varnish-cache.org and the Varnish Software site in November 2026. The open-source edition is free under BSD-2-Clause with no licence fee, while enterprise and hosted pricing is not published and is settled by commercial contract.

FAQ

  • How do the open-source and enterprise editions differ?
    Varnish Cache ships under BSD-2-Clause with the caching core, VCL and base tooling, free to deploy and modify; the enterprise edition from Varnish Software adds commercial modules, official support and service level commitments. Start by deciding whether vendor support and specific modules are required, then choose between self-hosting and procurement.

  • What is VCL?
    VCL is the configuration language that describes what happens when a request arrives, when a cache lookup runs, when the origin is fetched and when the response leaves. It compiles to native code that runs inside the worker, so branches are cheap, which makes it practical to move cache keys, cookie handling and traffic splitting to the edge.

  • How much traffic can one server carry?
    The vendor cites a measurement with Intel showing Varnish Enterprise reaching 1.5Tbps on a single server acting as one CDN node. That figure targets high-volume video and static delivery; real throughput depends on response size, hit ratio and hardware, so plan capacity by benchmarking your own content mix.

  • Which deployment paths exist?
    It installs on bare metal or virtual machines, and the official container image runs on Kubernetes with orchestration handling rolling releases. Before deploying, decide how objects are stored, where TLS terminates and how logs are collected, because those three choices drive most of the later operational complexity.

  • Can it replace a commercial CDN?
    In some cases. Self-hosted Varnish suits steady traffic, cost sensitivity or data residency requirements, but the operator takes on node scheduling, bandwidth purchasing and on-call duty. For global distribution, sudden spikes or workloads bound by an SLA, keep a commercial CDN and use self-hosted nodes for origin shielding and fallback.

Integration & Code Examples

Example 1: A minimal VCL configuration

vcl 4.1;

backend default {
  .host = "origin.example.com";
  .port = "443";
  .ssl = 1;
}

sub vcl_recv {
  if (req.url ~ "^/static/") {
    unset req.http.Cookie;
  }
}

sub vcl_backend_response {
  if (bereq.url ~ "^/static/") {
    set beresp.ttl = 7d;
  }
}

Example 2: Run it as a container

docker run -d --name varnish -p 80:80 \
  -v "$PWD/default.vcl:/etc/varnish/default.vcl:ro" \
  varnish:stable

Example 3: Inspect hit ratio and logs

varnishstat -1 | egrep 'cache_hit|cache_miss|MAIN.cache'
varnishlog -g request -q 'ReqURL ~ "^/static/"' | head -40

Community & Resources

Official channels

Ecosystem and comparison

Visit Varnish Cache Website → https://varnish-cache.org/
Visit Website ↗