Unique to Trident

Cache Compression

91% less memory. 11x more content. Same performance.
Industry-leading cache efficiency.

zstd Algorithm91% SavingsZero Config
11x
Memory Efficiency
91%
Memory Savings
829B
Per Entry (vs 9KB)
29.6x
Compression Ratio

Memory Usage Comparison

15,000 Cached Entries (Mixed Content)

Trident (zstd)11.86 MB
Trident (no compression)135.62 MB
Varnish OSS133.63 MB
829 bytes
Per entry (Trident)
9.25 KB
Per entry (uncompressed)
9.12 KB
Per entry (Varnish)

What This Means For You

💰

Lower Infrastructure Costs

Same cache capacity with 91% less RAM. A 4GB server does the work of a 44GB server.

91% cost reduction
📈

Higher Hit Rates

More content fits in cache before eviction. Less backend traffic, faster responses.

10x more entries
🏢

Better Customer Density

For hosting providers: 10x more customer sites on the same hardware.

10x density

Three Lines of Config

# trident.toml

[cache.compression]
enabled = true        # Enable compression
algorithm = "zstd"    # zstd or gzip
level = 3             # 1-19 (3 is fast + good ratio)

# Optional: only compress certain types
content_types = ["text/*", "application/json", "application/javascript"]
min_size = "1KB"      # Don't compress tiny responses

zstd (Recommended)

  • • Best compression ratio
  • • Very fast decompression
  • • Developed by Facebook

gzip (Alternative)

  • • Universal compatibility
  • • Slightly lower ratio
  • • Good for mixed content

Availability Comparison

ProductCache CompressionMemory Savings
Trident Velocity✓ Built-in zstd/gzip91%
Varnish OSS✗ Not available0%
Varnish Plus✗ Not available0%
Nginx✗ Not available0%
HAProxy✗ Not available0%
Cloudflare✗ Edge only0%*

* CDNs compress on the edge, but your origin cache still uses full memory

How It Works

1

Response Received

Trident receives response from backend with Content-Type header.

2

Eligibility Check

Checks if content type matches configured types and size exceeds min_size.

3

Compression

Response body compressed with zstd at configured level before storing.

4

Storage

Compressed data stored in cache. Headers preserved separately.

5

Serving

On cache hit, decompressed instantly (zstd is very fast) and served to client.

Calculate Your Savings

Current Setup

Varnish RAM Required
32 GB
Cloud Cost (approx)
$320/month

With Trident

Trident RAM Required
3 GB
Cloud Cost (approx)
$30/month
Annual Savings
$3,480/year
Just from memory efficiency alone

Cut Your Infrastructure Costs

Cache compression is included in all Trident plans.