DevOps / SREDevelopment

Aero Commerce Varnish Integration

Experimental Varnish module for Aero Commerce demonstrating dramatic performance improvements from 21 reqs/s to 3.3k reqs/s with p95 latency drop from 6s to 51ms.

Experimental Varnish cache integration for Aero Commerce demonstrating order-of-magnitude performance improvements through HTTP caching. Load testing showed 157x throughput increase and 117x faster response times.

βœ“
Dramatic Performance Gains

157x throughput increase and 117x faster response times with Varnish HTTP caching.

Problem

Aero Commerce, an emerging ecommerce platform, needed to handle high traffic loads efficiently. Without HTTP caching, backend PHP execution limited throughput to 21 requests/second with 6-second p95 response times.

Solution

πŸ€–
Session-aware caching with bypass rules for dynamic content
πŸš€
Automatic Product/Category cache invalidation
πŸ§ͺ
Configurable cache rules
βœ…
Varnish VCL Generation
πŸ“Š
Built-in Purge Management functionality
πŸ“¦
Plug and Play

Impact

The following performance comparison was performed on a Hetzner CPX31 server (4vcpu, 8GB memory)

51ms
P95 Time
↑ +99.15%
3350
Peak RPS
↑ +15852%
+90%
Cache Hit Rate
↑ 100%
Without Varnish
With Varnish
Requests Per Second
21
3,350 157x increase
p95 Request Latency
6s
51ms 117x faster P95

Technical Highlights

πŸ“ˆ
Cache hit rate optimization (~90%+)
πŸ›’
Dynamic content bypass for cart/checkout
πŸ”Œ
Integration with Aero's architecture
🧩
Potential for ESI implementation for personalized content
Example Varnish VCL Snippet vcl
backend default {
    .host = "127.0.0.1";
    .port = "8080";
}

sub vcl_recv {
    if (req.url ~ "/cart|/checkout") {
        return (pass);
    }
}
  • Cache hit rate optimization (~90%+)
  • Dynamic content bypass for cart/checkout
  • Integration with Aero’s architecture
  • Potential for ESI implementation for personalized content